What is HTML 5?
Some new elements include: audio, canvas, video
- canvas is used for rendering dynamic bitmap graphics on the fly, such as graphs or games.
- video and audio for multimedia content. Both provide an API so application authors can script their own user interface, but there is also a way to trigger a user interface provided by the user agent. source elements are used together with these elements if there are multiple streams available of different types.
Some new attributes: html:manifest, script:async
- The html element has a new attribute called manifest that points to an application cache manifest used in conjunction with the API for offline Web applications.
- The script element has a new attribute called async that influences script loading and execution.
Some attribute changes: draggable, dropzone, onevent-name, script, style
- The draggable and dropzone attributes can be used together with the new drag & drop API.
HTML5 also makes all event handler attributes from HTML4, which take the form onevent-name, global attributes and adds several new event handler attributes for new events it defines. E.g. the play event which is used by the API for the media elements (video and audio).
The type attribute on script and style is no longer required if the scripting language is ECMAScript and the styling language is CSS respectively.
HTML5 introduces a number of APIs that help in creating Web applications. These can be used together with the new elements introduced for applications:
- API for playing of video and audio which can be used with the new elements:
- An API that enables offline Web applications.
- An API that allows a Web application to register itself for certain protocols or media types.
- Editing API in combination with a new global attribute:
- Drag & drop API in combination with an attribute:
- API that exposes the history and allows pages to add to it to prevent breaking the back button.
If you have some extra time see it in action HTML 5 Rocks.