How to use the & lt;option> tag in HTML
This article will explain in detail how to use tags in HTML, Xiaobian thinks it is quite practical, so share it with you as a reference, I hope you can gain something after reading this article.
HTML tags
examples
Create a selection list with 4 options:
Volvo
Saab
Opel
Audi
browser support
InternetExplorerFirefoxOperaGoogleChromeSafari
Most major browsers support tags.
Label definition and instructions
The tag defines an option (an entry) in the drop-down list.
The content of the tag is used as or as an element.
Tips and comments
Note: Tags can be used without any attributes, but you usually need to use the value attribute, which indicates what is sent to the server.
Note: Please use this tag with the select element, otherwise the tag is meaningless.
Tip: If the list has a large number of options, you can use labels to combine related options.
global properties
Tags support global properties, see full property sheet HTML global properties.
event properties
Tags support all HTML event attributes.
About "how to use tags in HTML" this article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.