Skip to main content

Meta Tags, Title, and Language

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Short summary of the page" />
<title>HTML Course</title>
</head>

Why These Matter

  • charset prevents encoding issues.
  • viewport makes mobile rendering sane.
  • description often affects previews and snippets.
  • title identifies the page in tabs and search results.

Common Pitfalls

  • Missing viewport on mobile-facing pages
  • Generic titles like Home
  • Wrong page language declaration

What's Next