A minimum HMTL5 page

This is the minimum html5 page that validates according to the standard.
Tested with validator.w3.org.

1
2
3
4
5
6
7
8
9
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Minimal HTML5 Page</title>
</head>
<body>
</body>
</html>

You should minimally define:

  • lang property. This causes a warning only.
  • charset property.
  • <title> element.

You can find the file as a project at Github: HTML5-Cheatsheet / minimum-html5-page branch.