- Why developers can safely use HTML5
Compatibility. HTML5 in the old version of the browser can run normally, while supporting the HTML5 of the new browser will also be able to run HTML4, the site created with HTML4 is not necessary to rebuild all.
Practicability. HTML5 is able to solve real-world problems, HTML5 internally encapsulates only useful functions, and does not encapsulate complex and meaningless functions.
Non-revolutionary development. HTML5 internal functions are not revolutionary, but developmental. Because of compatibility, so non-revolutionary, will not overturn the previous standards. Because of its practicality, it has a developmental significance.
- HTML5 want to solve the problem
The compatibility between Web browsers is very low. HTML5 detailed analysis of the features of each Web browser, which is then based on the requirement that all internal functions of these browsers conform to a common standard.
The document structure is ambiguous. Add a lot of structural elements to make the document structure clearer and more semantic.
The functionality of the Web application has been limited. Provides a new API for a variety of Web applications, typically including multimedia playback, making it possible to implement rich Web applications.
- HTML5 New structure elements
Section,article,aside,header,hgroup,footer,nav,figure.
- Additional elements to add
Video,audio,embed,mark,progress,time,ruby,rt,rp,wbr,canvas,command (indicates command button), Details,datalist,datagrid,keygen, Output,source,menu.
- The type of the new INPUT element
Email,url,number,range, as well as multiple date pickers, including date,month,week,time,datetime,datetime-local
- Elements of abolition
Elements that can be replaced with CSS
No longer use frame frame, frame,frameset,noframes.
Only partially supported elements of the browser, Applet,bgsound, etc.
Other, RB elements are replaced by Ruby, etc.
- Global Properties
Contenteditable,designmode,hidden,spellcheck,tabindex
- Main structure Elements
References: The authoritative guide for HTML5 and CSS3
Core content of HTML5