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

What does summary tag mean in html

云罗郡主
Release: 2019-02-18 13:26:40
Original
5772 people have browsed it

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

tag is a new tag in HTML 5.

Note: Please use with

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 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>
Copy after login


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 of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template