HTML5 is the future of professional looking great websites. HTML5 is a markup language used for structuring and presenting content on the World Wide Web. It was finalized, and published, on 28 October 2014 by the World Wide Web Consortium (W3C). This is the fifth revision of the HTML standard since the inception of the World Wide Web.
Declaration of HTML5 Document
The DOCTYPE declaration for HTML5 is very simple:<!DOCTYPE html>
You May Also Like: Introduction to HTML
Character Encoding Declaration of HTML5
The character encoding (charset) declaration is also very simple:<meta charset="UTF-8">
HTML5 Document Example
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title of the document</title>
</head>
<body>
Content of the document......
</body>
</html>
Amazing New Elements in HTML5
The most interesting new elements are:New semantic elements like <header>, <footer>, <article>, and <section>.
New form control attributes like number, date, time, calendar, and range.
New graphic elements: <svg> and <canvas>.
New multimedia elements: <audio> and <video>.
New HTML5 API's (Application Programming Interfaces)
The most interesting new API's are:- HTML Geolocation
- HTML Drag and Drop
- HTML Local Storage
- HTML Application Cache
- HTML Web Workers
- HTML SSE
Elements Removed in HTML5
The following HTML4 elements have been removed from HTML5:Element | Use instead |
---|---|
<acronym> | <abbr> |
<applet> | <object> |
<basefont> | CSS |
<big> | CSS |
<center> | CSS |
<dir> | <ul> |
<font> | CSS |
<frame> | |
<frameset> | |
<noframes> | |
<strike> | CSS |
<tt> | CSS |