HTML5 is the fifth revision and newest version of the HTML standard. It offers new features that provide not only rich media support, but also enhance support for creating web applications that can interact with the user, his/her local data, and servers, more easily and effectively than was possible previously.
The previous version of HTML, HTML 4.01, came in 1999, and the internet has changed significantly since then.
- HTML5 was designed to replace both HTML 4, XHTML, and the HTML DOM Level 2.
- HTML5 is also cross-platform. It is designed to work whether you are using a PC, or a Tablet, a Smartphone, or a Smart TV.
The doctype for HTML5 is very simple. To indicate that your HTML content uses HTML5, simply use:
<!DOCTYPE html >
A Minimum HTML5 DocumentBelow is a simple HTML5 document, with the minimum of required tags:
<!DOCTYPE html > <html> <head> <meta charset="UTF-8"> <title>Title of the document</title> </head> <body> Content of the document...... </body> </html>
HTML5 – New Features
Some of the most interesting new features in HTML5 are:
- The <canvas> element for 2D drawing</canvas>
- The <video> and <audio>; elements for media playback
- Support for local storage
- New content-specific elements, like <article>, <footer>, <header>, <nav>, <section>
- New form controls, like calendar, date, time, email, url, search
Browser Support for HTML5
All major browsers (Chrome, Firefox, Internet Explorer, Safari, Opera) support the new HTML5 elements and APIs, and continue to add new HTML5 features to their latest versions.
The HTML 5 working group includes AOL, Apple, Google, IBM, Microsoft, Mozilla, Nokia, Opera, and hundreds of other vendors.