Home  >  Article  >  Web Front-end  >  What does summary tag mean in html

What does summary tag mean in html

云罗郡主
云罗郡主Original
2019-02-18 13:26:405669browse

What does the summary tag in html mean?

The summary tag defines a visible title for the details element. When the user clicks on the title, the detailed information will be displayed, and the summary element should be The first child element of the details element.

html summary tag syntax

Function: Contains the title of the details element. The "details" element is used to describe detailed information about the document or document fragment.

Description: The 631fb227578dfffda61e1fa4d04b7d25 tag is a new tag in HTML 5.

Note: Please use with a5e9d42b316b6d06c62de0deffc36939 tag. The title is visible and details are displayed when the user clicks on the title. The "summary" element should be the first child of the "details" element. The 631fb227578dfffda61e1fa4d04b7d25 tag is only supported in Chrome and Safari 6.

html summary tag example

<!DOCTYPE HTML>
<html>
<body>
<details>
<summary>HTML 5</summary>
This document teaches you everything you have to learn about HTML 5.
</details>
</body>
</html>


The above is the detailed content of What does summary tag mean in html. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn