HTML <optgroup> tagHTML <optgroup> tag is used to group related <options> in a drop down list within <select> element. Using <optgroup> tag with <select> makes easier to access the dropdown list especially if list has large number of options. SyntaxFollowing are some specifications about the HTML <optgroup> tag
ExampleTest it NowOutput: Attribute:Tag-specific attributes:
Global attribute:HTML <optgroup> tag supports the global attributes in HTML Event attribute:HTML <optgroup> tag supports the event attributes in HTML. Supporting Browsers
Next TopicHTML option Tag |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India