What are the block tags in html5

青灯夜游
Release: 2021-12-17 11:37:37
Original
5892 people have browsed it

The block tags in html5 are: 1. "<header>", which defines the document header; 2. "<section>"; 3. "<footer>"; 4. "< ;aside>"; 5. "<nav>"; 6. "<main>"; 7. "<article>"; 8. "<figure>".

What are the block tags in html5

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

New block tags in html5

New block-level elements: header, section, footer, aside, nav, main, The article, figure

  • <header> tags define the header (introduction information) of the document.

  • <section>The tag defines a section (section, section) in the document. Such as chapters, headers, footers, or other parts of the document.

  • <footer> tag defines the footer of a document or section. Should contain information about the elements it contains. Footers typically contain the document's author, copyright information, links to terms of use, contact information, and more. You can use multiple <footer> elements in a document. Contact information should be in the

    tag.

  • <aside>The tag defines content outside of the content in which it appears. Its content should be relevant to nearby content. Can be used as sidebar.

  • <nav>The tag defines the portion of the navigation link.

  • <main> tag specifies the main content of the document. The content within its elements should be unique to the document. It should not contain content that appears repeatedly throughout the document, such as sidebars, navigation bars, copyright information, site logos, or search forms.

    In a document, more than one <main> element cannot appear.

    The<main> element cannot be a descendant of: <article>, <aside>, <footer>, <header>, or <nav>.

  • <article> tag specifies independent self-contained content. Potential sources of elements: forum posts, newspaper articles, blog entries, user comments. The

  • <figure> tag specifies independent stream content (images, charts, photos, code, etc.).

Related recommendations: "html video tutorial"

The above is the detailed content of What are the block tags in html5. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!