The difference between HTML 5 and HTML 4, Web front end note 2.9

Source: Internet
Author: User

Reasons for the launch

The advent of HTML is to solve the problems existing on the web.

· The compatibility between Web browsers is very low

· The document structure is not clear (the entire page Div, not semantically)

· The functionality of the Web application has been limited

Changes in grammar

DOCTYPE statement (<! DOCTYPE html>)

Specify character encoding (<meta charset= "UTF-8" >)

Elements that can omit markup

Property with a Boolean value (<input type= "checkbox" checked>) (property is not written as false, write-only property or write = "" or = "checked" are true

Omit quotation marks (attribute values can not be written in quotation marks)

New and repealed elements as well as new attributes and repealed properties

Http://www.w3school.com.cn/tags/index.asp

New structure elements

section, article, aside, header, Hgroup, footer, nav, figure

Additional elements to add

Video, audio, canvas, etc...

The type of the new INPUT element

email, URL, number, range, Date pickers

Elements of abolition

· Elements that can be substituted with CSS: Basefont, big, center, fonts, S, TT, u, etc.

· No longer use frame frame (only IFrame is still in use, also useful)

· And some other elements that have been abolished.

New properties

· Form-related properties

· Link-related properties

· Other properties

(http://www.jb51.net/html5/73524.html)

Revoked Properties

(http://www.jb51.net/html5/73524.html)

New Global Properties

· Contenteditable

· DesignMode (can only be set in JS, on or off, control whether the elements in the page can be edited)

· Hidden (can be controlled in JS)

· TabIndex (Controls the Order of tab keys)

Web Front end note 2.9 HTML 5 differs from HTML 4

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.