HTML <option> tagHTML <option> tag is used to define options in a dropdown list within <select> or <datalist> element. A dropdown list must have at least one <option> element. The related <option> of a dropdown list can be grouped using <optgroup> element which helps to understand a large list. Tips: The <option> tag can be used without any attribute, but it should be used with value attribute which specifies what send to the server.SyntaxFollowing are some specifications about the HTML <option> tag
ExampleTest it NowOutput: Attribute:Tag-specific attributes:
Global attribute:HTML <option> tag supports the global attributes in HTML Event attribute:HTML <option> tag supports the event attributes in HTML. Supporting Browsers
Next TopicHTML output 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