Skip navigation

For quite some time, I have been designing without knowing the label tag itself. After some time, I learned its semantic value.

But when I learned to know there is another “label” which is attribute, I really shocked.

mmm… That remains me: learning is continuous process.

<select>
 <optgroup label="Swedish Cars">
   <option value="volvo">Volvo</option>
   <option value="saab">Saab</option>
 </optgroup>
 <optgroup label="German Cars">
   <option value="mercedes">Mercedes</option>
   <option value="audi">Audi</option>
 </optgroup>
</select>

Also note optgroup tag, most of us may not get change to use it. 😉

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: