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 |
HTML iframes HTML Iframe is used to display a nested webpage (a webpage within a webpage). The HTML <iframe> tag defines an inline frame, hence it is also called as an Inline frame. An HTML iframe embeds another document within the current HTML document in the rectangular region....
4 min read
HTML Picture HTML <picture> tag is used in responsive web designing where we need to load the different images based on their viewport, height, width, orientation, and pixel density. The <picture> tag contains one or more <source> elements and one <img> elements. According to the viewport, the matching image...
9 min read
HTML Heading A HTML heading or HTML h tag can be defined as a title or a subtitle which you want to display on the webpage. When you place the text within the heading tags <h1>.........</h1>, it is displayed on the browser in the bold format...
2 min read
HTML <small> tag HTML <small> tag makes text font by one size smaller than the document?s base font size (Such as large to medium, medium to small, etc.) In HTML5, <small> tag is used for identifying secondary importance such as copyright, side comments, and legal notices. Tips:...
1 min read
HTML <meta> tag HTML <meta> tag is used to represent the metadata about the HTML document. It specifies page description, keywords, copyright, language, author of the documents, etc. The metadata does not display on the webpage, but it is used by search engines, browsers and other web...
2 min read
HTML <s> tag HTML <s> tag is used to represent the range of content which is no longer accurate or relevant in some way. The text written between <s> (start) and </s> (end) tag, renders as a strike a line through the text. Note: Do not confuse with...
1 min read
HTML <param> tag HTML <param> tag is used to pass the parameters to the object that has been embedded using <object> element. We can use more than one <param> tag within an <object> element in any order, but each tag must contain name and value attribute and should...
1 min read
HTML <!DOCTYPE> tag On the HTML document you have often seen that there is a <!DOCTYPE html> declaration before the <html> tag. HTML <!DOCTYPE> tag is used to inform the browser about the version of HTML used in the document. It is called as the document type...
1 min read
HTML Anchor The HTML anchor tag defines a hyperlink that links one page to another page. It can create hyperlink to other web page as well as files, location, or any URL. The "href" attribute is the most important attribute of the HTML a tag. and which...
1 min read
<br> Tag in HTML Introduction HTML Stands for Hypertext Markup Language. We also call it the backbone of the internet. It is one of the markup languages which is used to create web pages and applications. One of HTML's most essential and powerful features is the <br> tag....
3 min read
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