HTML Quick Reference
HTML for page structure, text, links, images, lists, tables, forms, media and the document head.
7 sections · 43 snippets · updated Oct 14, 2026
Click any snippet to copy it.
Page skeleton
Every page starts here.
TaskCode
- Basic document
- Link a stylesheet
- Load a script
- Page description
- Favicon
Structure
Semantic layout elements.
TaskCode
- Page regions
- Content blocks
- Generic containers
- Headings
Text
Paragraphs and inline formatting.
TaskCode
- Paragraph / line break
- Emphasis
- Code
- Quote
- Highlight / small print
- Abbreviation
- Date / time
- Keyboard key
Links & images
Hyperlinks and pictures.
TaskCode
- Link
- Open in a new tab
- Email / phone link
- Link to a section
- Image
- Lazy-load an image
- Image with caption
Lists & tables
Structured content.
TaskCode
- Bulleted list
- Numbered list
- Description list
- Table
- Span columns / rows
Forms
Collecting input.
TaskCode
- Form
- Labelled text input
- Input types
- Textarea
- Dropdown
- Radio buttons
- Button
- Validation attributes
Media & interactive
Embeds and built-in widgets.
TaskCode
- Video
- Audio
- Embed a page
- Expandable section
- Dialog
- Popover (no JavaScript)