HTML5 commonly used structured label finishing

Source: Internet
Author: User

Advantages of structured Labeling:

1, convenient browser processing and recognition, improve the quality of web pages and semantics.

2, reduce a lot of meaningless div tags, enhance the readability of the code.

Structured Tags: (header,nav,body,article,section,aside,hgroup,figure,figcaption,footer)

<article> define external content, which can be a new article

<aside> define content other than article, aside content can be used as the sidebar of an article

<figure> for grouping elements, using the figcaption element to add a caption to an element group

<figcaption> define a caption for a figure element

<footer> define a section or document footer

<nav> Defining parts of navigation links

<section> defines the sections (section, section) of the document. such as chapters, headers, footers, or other parts of the document.

<time> define a date or time, or both.

Document structure of the HTML5

1 <Header>...</Header>2 <nav>...</nav>3 <article>4     < Section>...</ Section>5 </article>6 <aside>...</aside> 7 <Footer>...</Footer>

Picture structure of HTML5

1 < FigureID= "Fig2">2   <legend>Figure 2. Install Mozilla XForms Dialog</legend>3   <imgalt= "A Web site is requesting permission to install the ollowing item:mozilla XForms 0.7 Unsigned"src= "Installdialog.jpg" />4 </ Figure>

Although these labels have a fixed intention, but the specific situation to be analyzed. The use of the label can be adjusted according to their own needs to do the appropriate!

HTML5 commonly used structured label finishing

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.