The <details> tag is used for the content/information which is initially hidden but could be displayed if the user wishes to see it. This tag is used to create an interactive widget which the user can open or close it. The content of the details tag is visible when open the set attributes.
<details> <summary> Text content </summary> <div> Content . . . > </details>
Attribute The detail tag has an attribute called open which is used to display the hidden information by default.
<details open> <summary> Text content </summary> <div> Content . . . > </details>
Browser Support: Since this tag is included in HTML 5, so all the browsers do not support this tag.
The browsers which supports this tag are:
- Google Chrome 12.0 and above
- Firefox 49.0 and above
- Opera 15.0 and above
- Safari 6.0 and above
- Why <big> tag is not in HTML5 while <small> tag exists ?
- HTML5 | MathML <menclose> Tag
- HTML5 | <footer> Tag
- HTML5 | <aside> Tag
- HTML5 | <dialog> Tag
- HTML5 | article tag
- HTML5 | <meter> Tag
- HTML5 | date attribute in <input> Tag
- HTML5 | mark Tag
- HTML5 | fieldset Tag
- HTML5 | figcaption Tag
- HTML5 | figure Tag
- HTML5 | <ruby> Tag
- HTML5 | rt Tag
- HTML5 | rp Tag
- HTML5 | MathML <merror> Tag
- HTML5 | MathML <maction> tag
- HTML5 | MathML <mfrac> tag
- HTML5 | MathML <mglyph> Tag
- HTML5 | MathML <mn> Tag
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
Improved By : shubham_singh