The details element in HTML5 is used to describe the details of a document or a certain part of the document. When the user clicks on the title, other content in the element except the title will be displayed or hidden. Codes such as "
This document was written in...".
#The operating environment of this article: Windows 7 system, HTML5 version, Dell G3 computer.
What element in html5 is used to describe the document?
The details element in html5 is used to describe the document. When the user clicks on its title, this element will be displayed or hidden. Nothing but the title.
HTML 5
Definition and usage
Example
Details about the document:
<details>This document was written in 2010.</details>
The
Tip: Use with the
Note: The details element can be used to describe any part of the document.
Recommended learning: "HTML5 Video Tutorial" "HTML Video Tutorial"
The above is the detailed content of What elements are used to describe documents in html5. For more information, please follow other related articles on the PHP Chinese website!