Skip to main content
FREE Mock interview & resume review with Sumit. Free right now, no payment needed.Book a slot

HTML Document Structure — HTML Fundamentals

Complete HTML Handbook

Beginner to Advanced — Tags, Forms, SEO, Accessibility & Interview Prep

138 tags150 interview Qs60 challenges
HTML Document Structure

Every HTML document has <!DOCTYPE html>, an <html> root, <head> for metadata, and <body> for visible content. Optional but recommended: lang on <html>, charset meta, viewport meta.

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>My Site</title>
</head>
<body>
  <main>...</main>
</body>
</html>

Output: Valid, responsive, accessible document shell.