Basic Structure of an HTML5 Document

The following describes the most basic tags needed for a legal HTML5 document. All of the tags will work in pre-HTML5 browsers, even very old browsers. Click on the "details" link for an explanation of each element. Please send corrections and suggested improvements to hall@coreservlets.com.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<link href="css/some-stylesheet.css"
      rel="stylesheet"/>
<script src="scripts/some-script.js">
</script>
</head>
<body>
...
</body>
</html>
Required (details)
Required (details)
Required
Treat as required (details)
Optional (details)

Optional (details)


Required
Many new elements (details)


More Info