HTML5¶
Sectioning¶
<!DOCTYPE html>
<html lang="en">
<head>
<title>Title</title>
</head>
<body>
<main>
<h1>Title</h1>
<article>
<h2>Section</h2>
<section>
<h3>Subsection</h3>
<p>Content</p>
</section>
</article>
</main>
</body>
</html>
Use following link to validate: https://validator.w3.org/nu/?showoutline=yes
Minimal document¶
Shortest valid HTML5 document:
<!DOCTYPE html><title>x</title>