Talking about HTML5

Source: Internet
Author: User
Tags element groups

 The difference between HTML5 and HTML:

  1. On the document type declaration

html:<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

  

html5:<! DOCTYPE html>

  2. In structural semantics

HTML: There is no structure semantic label, we are usually named <div id= "header" ></DIV> This represents the head of the Web site.

HTML5: There is a great advantage in semantics. Provides a number of new semantic tags, such as:

  HTML5 Common structure Tags: article,aside,figcaption,figure,footer,header,hgroup,nav,section,time

The <article> tag defines the external content, which can be a new article.

<aside> tags define content other than article, and aside content can be used as the sidebar for the article.

The <figcaption> tag defines the caption of the figure element.

The <figure> tag is used to group elements, using the figcaption element to add headings to the element groups.

The <footer> tag defines the section or footer of the document.

The

<nav> tags define the part of the navigation link.

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

The <time> tag defines the date or time, or both.

HTML5 Advantages:

  1. Network standards

2. Multi-device cross-platform

3. Self-adapting web design

4. Instant Updates

cons :   The standard is not well supported by the browser. Due to the introduction of new tags, there is a lack of a unified data description format between browsers, resulting in poor user experience.

Talking about HTML5

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.