HTML5 in the new main structural elements

article element

article element represents the document, page or application independent, complete, it can alone be referenced external content.
It can make a blog or in the newspaper articles, a forum post, some user comments or separate plug-ins, or any other independent content.

article element is used can be nested. (Article on the principle of the inner layer to the outer layer related to the content associated article)

article indicates that the plug element can be used. (The plug-in looks like the same page)

for example:

<article>
    <header>
        <h1>标题</h1>
        <p>这是头部</p>
    </header>
    <p>Hello</p>
    <footer>
        <p>这是底部</p>
    </footer>
</article>

aside element

aside element is used to indicate the current subsidiary information portion of the page or article, it can contain a reference to the current page or the main content related sidebar, advertising, navigation, and other similar content are different from the main part.

  1. The auxiliary information contained in the article, as the main part

nav element is used as a page navigation can be connected to the group, the navigation element which links to other pages or other parts of the current page.
Not all groups must be connected into the nav element, simply primary, basic connection set into the nav element can be.

nav application scenarios:

  • Traditional navigation
  • Sidebar navigation
  • In-page navigation
  • Turn the page

Guess you like

Origin www.cnblogs.com/wbyixx/p/11946131.html