New features: HTML5 is now not a subset of SGML, mainly about images, location, storage, multi-tasking and other functions. 1. Drag release (Drag and Drop) API 2. Semantically better content tags (header,nav,footer,aside,article,section) 3. Audio, Video API (Audio,video) 4. Canvas API 5. Geography (geolocation) API 6. Local offline storage Localstorage long-term storage data, the browser is closed after the data is not lost; 7. Sessionstorage data is automatically deleted after the browser is closed 8. form controls, calendar, date, time, email, url, search 9. New technology Webworker, WebSocket, geolocation removed elements: 1. Elements of pure expression: Basefont,big,center,font, S,strike,tt,u; 2. Elements that have a negative impact on usability: frame,frameset,noframes; support HTML5 new Tags: 1. IE8/IE7/IE6 supports the label generated by the Document.createelement method, which allows these browsers to support HTML5 new tags, and when the browser supports new tags, it also needs to add the default style of the tag (the best way is to use the mature framework directly , the most used is the HTML5SHIV framework):
| 123 |
<!--[if lt IE 9]> <script> src="http://html5shiv.googlecode.com/svn/trunk/html5.js"</script> <![endif]--> |
How to differentiate: DOCTYPE declaration of new structural elements, functional elements
What are the new features of HTML5