Home >Web Front-end >Front-end Q&A >How to use html section tag

How to use html section tag

藏色散人
藏色散人Original
2019-05-27 15:13:116341browse

html section tag is used to define sections (sections, sections) in the document. Such as chapters, headers, footers, or other parts of the document. The

tag is a new tag in HTML 5.

How to use html section tag

#html How to use the section tag?

Function: Define sections (sections, sections) in the document. Such as chapters, headers, footers, or other parts of the document.

Description: The

tag is a new tag in HTML 5.

Note: All browsers support the

tag.

html section label example 1

<!DOCTYPE html>
<html>
<body>
<section>
<h1>php.cn</h1>
<p>
PHP中文网:独家原创,永久免费的在线php视频教程,php技术学习阵地!
</p>
</section>
</body>
</html>

Running result:

How to use html section tag

html section label example 2

<!DOCTYPE html>
<html>
<meta charset="utf-8">
<body>
<section>
<h1>西门大官人</h1>
<p>
西门大官人的视频教程和直播课程推荐一看。
</p>
</section>
</body>
</html>

Running results:

How to use html section tag

The above is the detailed content of How to use html section tag. 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