HTML5 partial elements

Source: Internet
Author: User

Document

HTML4 Document Declaration:

<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" >

HTML5 Document Declaration:

<! DOCTYPE html>

HTML4 Meta:

<meta http-equiv= "Content-type" content:text/html "charset=" UTF-8 ">

HTML5 Meta:

<meta charset= "UTF-8" >

HTML5 new elementsElements:

The header element represents a chunk of content in the page or the title of the entire page.

<nav>Elements:

The nav element represents the navigation links section of the page.

<article>Elements:

The article element represents a separate piece of content in the page that is irrelevant, such as an article in a story.

<section>Elements:

A section element represents a piece of content area in a page, such as a header, footer, and so on. can also be used with HN (H1, H2,,) and so on, marking the structure of the document!

<aside>Elements:

The aside element represents the auxiliary information related to the contents of the aside element, and content!

<footer>Elements:

The footer element represents a page or a footer for a section of the page, such as the time the file was created, the author, the contact, and so on.

<time>Elements:

The time element represents a time or a date in a 24-hour period, which allows you to have slack when it is marked.

<pubdate>Property:

Pubdate can be used in the article element to indicate the time at which the current article was published.

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