Home > Web Front-end > H5 Tutorial > HTML5 study notes concise version (3): new elements hgroup, header, footer

HTML5 study notes concise version (3): new elements hgroup, header, footer

黄舟
Release: 2017-01-21 16:34:00
Original
2344 people have browsed it

hgroup

tag is used to group the titles of web pages or sections.

<hgroup>
  <h1>Welcome to my WWF</h1>
  <h2>For a living planet</h2>
</hgroup>

<p>The rest of the content...</p>
Copy after login

header

The header element is an auxiliary element with guidance and navigation functions. Typically, the header element can contain the title of a block (such as h1 to h6, or hgroup element tags), but can also contain other content, such as data tables, search forms, or related logo images.

We can use this element to write the title part of the entire page:

<header>
    <h1>The most important heading on this page</h1>
</header>
Copy after login

In the same page, each content block can have its own

element, for example:

<header> 
  <h1>The most important heading on this page</h1>
</header>

<article> 
  <header>   
    <h1>Title of this article</h1> 
  </header> 
  <p>...Lorem Ipsum dolor set amet...</p>
</article>
Copy after login

The

element usually contains a heading tag (h1 to h6) or hgroup. In addition, other content can also be included, such as data tables, search forms or related logo images; according to the latest W3C HTML5 specification update, the
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