HTML5 is the latest and most enhanced version of HTML.Technically, HTML is not a programming language, but rather a mark up language.
The DOCTYPE declaration for HTML5 is very simple:
The character encoding (charset) declaration is also very simple:
See this example:
The default character encoding in HTML5 is UTF-8.
The most interesting new HTML5 elements are:
New semantic elementslike <header>, <footer>,<article>, and <section>.
New attributes of form elements like number,date, time, calendar, and range.
New graphic elements: <svg> and <canvas>.
New multimedia elements: <audio> and <video>.
The following HTML4 elements have been removed in HTML5:
| Removed Element | Use Instead |
|---|---|
| <acronym> | <abbr> |
| <applet> | <object> |
| <basefont> | CSS |
| <big> | CSS |
| <center> | CSS |
| <dir> | <ul> |
| <font> | CSS |
| <frame> | |
| <frameset> | |
| <noframes> | |
| <strike> | CSS, <s>, or <del> |
| <tt> | CSS |