HTML5 is the next generation of HTML. It includes the fifth revision of HTML, CSS 3 and a series of Javascript APIs. The major browsers support many of the elements and APIs of HTML 5.
HTML5 helps developers to create apps and websites with the functionality, speed, performance etc. of a desktop application. But for a web application there is broader audience and wider array of devices.
Some rules for HTML5 set by W3c and WHATWG are:
- New features should be based on HTML, CSS, DOM and Javascript.
- Reduce the need of external plugins like Flash.
- Replace scripting by using more markups.
- Should be device independent.
Before HTML 5 we used <div> tags for any kind of structuring the web pages. But HTML 5 provides a wide range of tags for structuring the web pages.
HTML 5 includes API for GeoLocation. This is a very useful functionality to find out the geographical location through a device's user agent like mobile devices. Now it is very easy to embedding media to web pages. The video and audio tags are really some cool stuffs in HTML 5.
<video width="600" height="500" src="somevideo.mp4"/> |
The form is also upgraded in HTML 5. See some iput types newly includes in HTML 5.
- <input type="number">
- <input type="email">
- <input type="search">
- <input type="date">
- and more...
Mobile development became a revolution by the introduction of HTML5.
See the anatomy of a HTML 5 mobile app.
The key features of HTML5 for mobile devices includes:
- Offline Support.
- Canvas Drawing.
- Video and Audio Streaming support.
- GeoLocation API.
- Advanced Forms.
No comments:
Post a Comment