Documentation

Student-friendly HTML, CSS, and JavaScript reference with examples

Sections

HTML Document Structure

Every HTML document has the same basic structure:

<!DOCTYPE html>
<html>
<head>
<!-- Information about the page goes here -->

</head>
<body>
<!-- Visible content goes here -->

</body>
</html>

The <html> tag wraps everything in your document. Inside it, you have two main sections:

  • head: Contains metadata, links to stylesheets, and the page title
  • body: Contains all the visible content users will see