HTML Tutorial | Getting Started with HTML5 | HTML5 Overview

HTML5 Overview

HTML5 is the complete fifth version of HTML and is the latest standard recommendation and core markup language for the World Wide Web.
HTML5 is the latest HTML standard recommendation and next-generation standard that replaces HTML 4.01, XHTML 1.1, and related specifications.

Unlike XML or XHTML, HTML5 is syntactically very flexible.
For that reason, all of the following are syntactically allowed.

  • Uppercase letters can be used in tag names.
  • Quotes can be omitted from attribute values.
  • Attribute values can be omitted.
  • The closing slash (/) can be omitted for empty tags.

For more information about the changes in HTML5, refer to the official W3C site.

W3C HTML5 : W3C Recommendation, 14 December 2017

Basic HTML5 Structure

In HTML5, the DOCTYPE declaration became very simple.

<!DOCTYPE html>

The character set declaration also became very simple.
The default character encoding in HTML5 is UTF-8.

Before HTML5

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

Since HTML5

<meta charset="UTF-8">

References