Have you ever used HTML5 in your website? If so you must have experienced the rich features it brings out. If not you’re missing the great features it has. Some developers don’t use HTML5 because of some cross browser issues it carries. Of course HTML5 is still evolving but it is not temporary and it is here to stay. If you are a developer who’s waiting till the HTML5 sepc being complete you will have to wait much longer. I believe you should start fast. In this post I will give you some basic idea about HTML5.
HTML5 adds lot of new features to the HTML specification. HTML5 actually is a cooperation between the World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG). In this article will go through some of the features HTML5 brings out.
1. New Doctype
HTML5 has only one doctype and it is very simple to implement. therefore it is easy to implement it.
2. Make Content Editable
Before HTML5 we had to use various other technologies to make content editable. But in HTML5 this feature comes built in. You can use the attribute contentEditable in your elements to make them editable.
3. Validate Emails – Use Email Inputs
4. Figure element
If you want to add a caption to an image you usually have to add another <p> tag below that image and align accordingly. But HTML5 has a element called <figure> for you rescue. <figure> element with using with <figcaption> can be used to add captions to your images.
5. Local Storage in HTML5
HTML5 can store user data locally within users browser. This can be done also with cookies (using cookies to store user information) but local storage in HTML5 is more faster and secure. The local storage can be used to store large amount of data with affecting the performance.
The data in HTML5 local storage is stored as key/value pairs. The web page can only access the data stored from that particular website. (Read how to use local storage in HTML5)
Above are only few of the features that comes with HTML5. We’ll bring you more features and insights in upcoming posts.