All 1 entries tagged Underused
No other Warwick Blogs use the tag Underused on entries | View entries tagged Underused at Technorati | There are no images tagged Underused on this blog
February 16, 2007
<optgroup>
I've just found a useful HTML element that I hadn't come accross before: <optgroup>.
It's used in drop-down lists in forms to create categories that aren't selectable, for example:
<select>
<optgroup label="Odd">
<option value="1">One</option>
<option value="3">Three</option>
<option value="5">Five</option>
</optgroup>
<optgroup label="Even">
<option value="2">Two</option>
<option value="4">Four</option>
<option value="6">Six</option>
</optgroup>
</select>
would give:
So, hours of endless fun and entertainment...