HTML Cheat Sheet
Quick reference for common HTML tags and document structure.
Document
| Item | Meaning |
|---|---|
| <!DOCTYPE html> | HTML5 document mode |
| <html lang="en"> | Root element + language |
| <head> | Metadata (title, charset, CSS links) |
| <body> | Visible page content |
Text
| Item | Meaning |
|---|---|
| <h1>…</h6> | Headings by outline level |
| <p> | Paragraph |
| <!-- --> | Comment (not shown in normal view) |
Links & media
| Item | Meaning |
|---|---|
| <a href=""> | Hyperlink |
| <img src="" alt=""> | Image with accessible text |
