HTML <optgroup> tag25 Mar 2025 | 1 min read HTML <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
ExampleOutput: ![]() 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 |
HTML Form An HTML form is a section of a document which contains controls such as text fields, password fields, checkboxes, radio buttons, submit button, menus etc. An HTML form facilitates the user to enter data that is to be sent to the server for processing such as...
6 min read
HTML Quotes HTML quotes are used to put a short quotation on your website. To do so, you need to use HTML q tag and HTML blockquote tag. HTML q tag HTML q tag is used to put small quotation. To do so, write your text within <q>.............</q>...
2 min read
HTML <big> tag (Not supported in HTML5) HTML <big> tag was used to increase the text font size one level bigger than the document's base font size or surrounding text size, such as small to medium, medium to large, etc. NOTE: HTML <big> tag is no longer...
1 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: The...
1 min read
HTML Summary Tag The HTML <summary> tag is used with <details> tag. It is used as a summary, caption or legend for the content of a <details> element. It is used within the <details> tag. It must have a closing tag. The <summary> tag is new and introduced...
2 min read
HTML <nav> tag HTML <nav> tag is used to represent a section which contains navigation links, either within current document or to another document. Examples of some navigation links are menu, table of contents, indexes, etc. The <nav> tag is newly added tag in HTML5. Tips: You can...
1 min read
HTML <applet> tag (Not supported in HTML5) HTML <applet> tag was used to embed the Java applet in an HTML document. This element has been deprecated in HTML 4.0 and instead of it we can use <object> and newly added element <embed>. The use of Java applet...
2 min read
<header> Tag in HTML What is <header> Tag? The <header> element define a page or section header. A logo, a search bar, links for navigation, etc., are often included. This tag doesn't introduce a new outline section. The heading (an h1>-h6> element) of the section it surrounds is...
5 min read
HTML <i> tag Introduction to HTML <i> Tag The primary component required to add italic style to text on a web page is the HTML <i> tag, which stands for "italic." Its main function is to italicize the font style of certain words or phrases to emphasize...
6 min read
HTML Button Tag The <button> tag is used to create a clickable button within HTML form on your webpage. You can put content like text or image within the <button>........</button> tag. You should always specify the type attribute for a <button> tag. Different browsers use different default...
2 min read
We request you to subscribe our newsletter for upcoming updates.
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