In June 2013, Coreservlets.com will be hosting a live HTML5 training course in Maryland, developed and taught by David Geary. David is the author of Core HTML5 Canvas (as well as eight best-selling Java texts), is a three-time Java Rock Star at Java One, and has spoken and taught all over the world.

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