Introduces a Number of New Elements
HTML5 is the latest and most enhanced version of HTML. HTML5 is a Web Hypertext Application Technology Working Group.HTML5 is a markup language used for structuring and presenting content on the World Wide Web.
Browser Support
The latest versions of Apple Safari, Google Chrome, Mozilla Firefox, and Opera all support many HTML5 features, and Internet Explorer 9.0 will also have support for some HTML functionality.
The mobile web browsers that come pre-installed on iPhones, iPads, and Android phones all have excellent support for HTML5.
New Features
HTML5 introduces some new elements and attributes that can help you in building modern websites. Here is a set of some of the most prominent features introduced in HTML.
- New Semantic Elements − These are like <header>, <footer>, and <section>.
- Persistent Local Storage − To achieve without resorting to third-party plugins.
- Forms 2.0 − Improvements to HTML web forms where new attributes have been introduced for <input> tag.
- WebSocket − A next-generation bidirectional communication technology for web applications.
- Server-Sent Events − HTML5 introduces events that flow from the webserver to the web browsers and they are called Server-Sent Events (SSE).
- Audio & Video − You can embed audio or video on your webpages without resorting to third-party plugins.
- Canvas − This supports a two-dimensional drawing surface that you can program with JavaScript.
- Geolocation − Now visitors can choose to share their physical location with your web application.
- Microdata − This lets you create your own vocabularies beyond HTML5 and extend your web pages with custom semantics.
- Drag and drop − Drag and drop the items from one location to another location on the same webpage.
Backward Compatibility
HTML5 is designed, as much as possible, to be backward compatible with existing web browsers. Its new features have been built on existing features and allow you to provide fallback content for older browsers.
It is suggested to detect support for individual HTML features using a few lines of JavaScript.