HTML5 Introduction

HTML5 is the fifth major version of HTML. It became an official W3C recommendation in 2014, and it is what we use today. It made the web richer, because many things that needed plugins like Flash can now be done with plain HTML.


What is new in HTML5

FeatureExample
Simple doctype and charset<!DOCTYPE html>, <meta charset="UTF-8">
Semantic elementsheader, nav, main, article, section, footer
Audio and video<audio>, <video>
Graphics<canvas> and inline <svg>
New form input typesemail, number, date, color, range
Form attributesplaceholder, required, pattern, autofocus
Web storagelocalStorage and sessionStorage in JavaScript
Other APIsGeolocation, drag and drop, offline support

Tags removed from HTML5

Some old tags are not valid in HTML5. Do the job with CSS instead.

Removed tagUse instead
<font>CSS font-family, color, font-size
<center>CSS text-align: center
<big>, <strike>, <tt>CSS, or <del> and <code>
<frame>, <frameset><iframe> and CSS layout

Is there HTML6?

No. HTML is now a “living standard” kept by WHATWG, and browsers add small improvements all the time. We just say HTML or HTML5.


Where to go next


Congratulations! Chapter Finished. Learn more about the similar topics:
Exercises & Assignments
No Content Found.
Interview Questions & Answers
No Content Found.