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
charsetprevents encoding issues.viewportmakes mobile rendering sane.descriptionoften affects previews and snippets.titleidentifies 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
- Continue to 3. Text and Inline Semantics