Last updated: August 27, 2026.
HTML gives web content its structure and meaning. Start with semantic elements, a document language, UTF-8, and accessible labels.
Minimal document
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Page title</title>
</head>
<body>
<main><h1>Page heading</h1><p>Page content.</p></main>
</body>
</html>WebCheatSheet HTML topics
| Topic | Purpose |
|---|---|
| ASCII reference | Character codes. |
| HTML entities | Reserved and special characters. |
| Character sets | Text encodings. |
| Link targets | Tabs, windows, and iframes. |
Use the MDN HTML reference for element details.