Knowledge Walls
Venkatesan
Hyderabad, Andhra Pradesh, India
Passcode:
HEADER [cont'd]
MOUSE EVENTS [cont'd]
OPTGROUP in FORM ELEMENTS of HTML 4
2110 Views
Usage 
Optgroup tag is used to group list of items in drop down.
Disabled attribute is used to disable specific group of item.
The label attribute is used to specifies a label for an option-group.
Example
<html>
<body>


<select>
  <optgroup label="Veg">
    <option value="carrot">carrot</option>
    <option value="Peas">Peas</option>
  </optgroup>
  <optgroup label="non veg" disabled>
    <option value="Chicken">chicken</option>
    <option value="mutton">mutton</option>
  </optgroup>
</select>

</html>
</body>
Next Topics
Next lessons of current book.
FORM ELEMENTS of HTML 4
FORM ELEMENTS of HTML 4
COMPONENTS of HTML 4
COMPONENTS of HTML 4
COMPONENTS of HTML 4
Previous Topics
Previous lessons of current book.
FORM ELEMENTS of HTML 4
FORM ELEMENTS of HTML 4
FORM ELEMENTS of HTML 4
FORM ELEMENTS of HTML 4
FORM ELEMENTS of HTML 4
Best Lessons of "HTML 4"
Top lessons which are viewed more times.
TEXT FONT STYLE of HTML 4
KEYBOARD EVENTS of HTML 4
FORM EVENTS of HTML 4
COMPONENTS of HTML 4
COMPONENTS of HTML 4
COMPONENTS of HTML 4
FORM EVENTS of HTML 4
KEYBOARD EVENTS of HTML 4
COMPONENTS of HTML 4
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details