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. 😉