HTML5 new structured elements

Source: Internet
Author: User

1. Theme structure elements: article section time pubdate Property Nav aside

Article usage: Used to denote an independent structure;

Section usage: A thing may have several parts, each one of which can be composed of sections;

Article and section differences: article is a special case of section, article more emphasis on independence from other departments, sections emphasize fragmentation and chunking.

Time Usage:

<pubdate datetime= "2014/09/01t21:51z"> My blog record time is September 1 </  time>

The Pubdate property is to indicate that the time element represents the published date of the article or the entire page.

2. Non-subject structure elements: header footer Hggroup address

The non-subject structure is more common and the semantics is clearer, the less familiar may be the hggroup element, its application scenario is: The article also needs title sub-title or lower-level title

Note: The above structural elements are only meant to represent the structure, and the div and other common tags are used to represent the content

Examples of the above elements:

1 <HTML>2 <Head>3     <MetaCharSet= "Utf-8">4     <title></title>5     <styletype= "Text/css">6 Body{Border:dotted 1px gray;}7 Article,header{width:800px;margin:0 Auto;}8 ul Li{List-style-type:None;Display:Table-cell;padding:10px;Font:20px Bold;}9 ul Li>a{text-decoration:None; }Ten     </style> One </Head> A <Body> -     <articlestyle=""> the         <Header> -             <Hgroup> -                 <H1>Article Main Title</H1> -                 <H2>Article Sub-title</H2> +                 <P>< Timepubdate datetime= "2014/09/01">2014/09/01</ Time></P> -             </Hgroup> +         </Header> A         < Section> at             <H2>China Minsheng Bank</H2> -             <P>Account Manager Assistant Account Manager Assistant Account Manager assistant Customer Managers Assistant Account Manager Assistants Account Manager Assistant Account Manager Assistant Account Manager Assistant Account Manager Assistant Account Manager Assistant Account Manager Assistant Account Manager Assistant Account Manager Assistant Client Managers assistants Customer Managers assistants Customer Managers Assistants Account Manager Assistant Account Manager Assistant Account Manager Assistant Account Manager Assistant Account Manager assistants</P> -         </ Section> -         < Section> -             <H2>China Minsheng Bank</H2> in             <P>Account Manager Assistant Account Manager Assistant Account Manager assistant Customer Managers Assistant Account Manager Assistants Account Manager Assistant Account Manager Assistant Account Manager Assistant Account Manager Assistant Account Manager Assistant Account Manager Assistant Account Manager Assistant Account Manager Assistant Client Managers assistants Customer Managers assistants Customer Managers Assistants Account Manager Assistant Account Manager Assistant Account Manager Assistant Account Manager Assistant Account Manager assistants</P> -         </ Section> to     </article> + </Body> - </HTML>

HTML5 new structured elements

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.