HTML5 is a new and current version of HTML language with new elements and attributes.
It is a set of new technologies for creating more powerful websites, and it has introduced the API(Application Programming Interface) and DOM(Document Object Model).
Note: The default character encoding used by HTML5 is UTF-8.
New Added Elements in HTML5:
The new elements are:
HTML5 has introduced new semantic elements like <header>, <footer>, <article>, and <section>.
HTML5 has introduced new attributes of form elements like the number, date, time, calendar, and range.
It has introduced new graphic elements like <svg> and <canvas>.
It has introduced new multimedia elements like <audio> and <video>.
New APIs in HTML5:
Removed elements from HTML 5:
The elements which are removed from HTML 5 are listed below:
|Removed Elements||Use Instead Elements|
|<strike>||CSS, <s> or <del></td>|
Different versions of HTML are:
HTML5 Browser Support:
HTML5 is supported in all modern browsers.
In all browsers, unrecognized elements are automatically handled as inline elements.
There might be a problem with some old browsers like Internat Explorer 6,7,8 which may not open the web page properly.
You can instruct older browsers to handle “unknown” HTML elements.
Define Semantic Elements as Block Elements:
The semantic elements defined by HTML5 are all block-level elements.
To fix the correct behavior of these elements in older browsers, you can set CSS display property for these elements to block.
Add New Elements to HTML:
New elements can be added to an HTML page using a browser trick.
In this example, a new element is added called <demo> to an HTML page and defines the style for it.