HTML5 new elements

Source: Internet
Author: User

    1. The <figure> tag provides separate streaming content (images, charts, photos, code, and so on).

The content of the <figure> element should be related to the main content , while the element's position is independent from the main content . If it is deleted, it should not affect the flow of the document .

<figcaption> tags define headings for <figure> elements.

The <figcaption> element should be placed in the position of the first or last child element of the <figure> element.

IE + +, Firefox, Opera, Chrome and Safari all support <article> tags.

notes: IE 8 or earlier versions of IE browsers do not support <article> tags.

<! DOCTYPE html>

  

2.<aside> the label definition <article> tags outside of the content .

The content of the aside should be relevant to nearby content .

The content of <aside> can be used as the sidebar of the article.

IE + +, Firefox, Opera, Chrome and Safari all support <aside> tags.

notes: IE 8 or earlier versions of IE browsers do not support <aside> tags.

The 3.<command> tag defines a command (such as a radio button, check box, or button) that a user can invoke.

Currently, <command> tags are not supported by mainstream browsers.

notes: only IE 9 support <command> tags, other previous versions or later versions of IE browser does not support <command> tags.

4. The<details> Tag provides additional details of the user's visible or hidden needs.

<details> tags are used to enable the user to turn off interactive controls . any form of content can be placed inside the <details> tag.

The content of the <details> element is not visible to the user unless the Open property is set .

<! DOCTYPE html>

  

Only Chrome and Safari 6 support <details> tags.

tip: use with <summary> tags to define a title for details. The title is visible, and when the user clicks on the title, the details are displayed.

<! DOCTYPE html>

  

  The 5.<footer> tag defines the footer of a document or part of a document . 

The <footer> element should contain information about the elements it contains.

Typically, this element contains the name of the creator of the document, the copyright information for the document , a link to the terms of use , contact information , and so on.

In a document, you can define multiple <footer> elements.

IE 9, Firefox, Opera, Chrome and Safari support <footer> tags.

notes: IE 8 or earlier versions of IE browsers do not support <footer> tags.

The 6.

The container for introductory content or navigation link bars .

In a document, you can define multiple .

Note:cannot be placed in <footer>,<address> , or another .

The 7.<mark> tag defines the marked text. Use the <mark> tag when you need to highlight text.

<! DOCTYPE html>

8.<meter> tags define weights and measures. Measures that are used only for the known maximum and minimum values.

such as: disk usage , query results of relevance and so on.

Note: <meter> cannot be used as a progress bar, progress bar <progress> tag.

Firefox, Opera, Chrome and Safari 6 support <meter> tags.

<! DOCTYPE Html>

The <!--High property specifies the point at which the value of the measure is defined as a higher value. -

The value of the <!--high property must be less than the value of the Max property and must be greater than the value of the low and Min properties. -

<!--The optimum attribute specifies that the measure is defined as the range of the optimal value. -

<!--The Value property is required to specify the current value of the measure. The Value property must be in the middle of the Min and Max property values. -

<meter value= "2" min= "0" max= "ten" >2 out of 10</meter><br><meter value= "0.6" >60%</meter> <p><strong>Note:</strong> the meter tag isn't supported in the Internet explorer.</p></body> 

The 9.<nav> tag defines the part of the navigation link.

Most browsers currently support <nav> tags.

Not all HTML documents are intended to be used with the <nav> element. The <nav> element is just an area that labels a navigation link.

On different devices (mobile or PC), you can make navigation links appear to suit the needs of different screens.

<!  DOCTYPE html>

The 10.<progress> tag defines the progress (process) of the task in the run.

Tip: Use the <progress> tag with JavaScript to show the progress of the task .

Note:<progress> tags are not intended to be used to represent weights and measures (for example, disk space usage or related query results). For weights and measures, please use the <meter> tag instead.

The Max property specifies how much work is required for a task altogether. The Value property specifies how many tasks have been completed.

<! DOCTYPE html>

One.<ruby> tags define ruby annotations (Chinese phonetic notation or characters).

Used in East Asia, the pronunciation of East Asian characters is displayed.

Use the <ruby> tags with <rt> and <rp> tags:
The <ruby> element consists of one or more characters that need to be interpreted/pronounced and a <rt> element that provides that information, as well as an optional <rp> element that defines what is displayed when the browser does not support the "Ruby" element .

IE + +, Firefox, Opera, Chrome and Safari support <ruby> tags.

notes: IE 8 or earlier versions of IE browsers do not support <ruby> tags.

<! DOCTYPE html>

The 12.<section> tag defines an area of the document. such as chapters, heads, bottoms, or other areas of the document.

IE + +, Firefox, Opera, Chrome and Safari <section> tags.

notes: IE 8 or earlier versions of IE browsers do not support <section> tags.

<! DOCTYPE html>

The 13<wbr> (Word break opportunity) label specifies where in the text to fit to add line breaks.

Tip: If the word is too long, or you are worried that the browser will wrap in the wrong place, you can use the <wbr> element to add Word break opportunity (word wrapping time).

All major browsers support <wbr> tags, in addition to Internet Explorer.

<! DOCTYPE html>

  

HTML5 new 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.