Document & Metadata
This page includes <!doctype html>, lang/dir on html, common <meta> tags, <link rel="icon">, <title>, and a (commented) <base>.
Use DevTools → Elements to inspect the head.
Text & Semantics
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Paragraph with emphasis, strong, i, b, u, del, mark, small, sup and sub, a line
break, and an WHO abbreviation.
Inline semantics: API, x = Math.random(), press Ctrl + S, output {"ok":true},
Quoting: Short inline quote
.
Address: 123 Demo Street, Web CityBlockquote with source URL in
citeattribute.
Contact: teacher@example.edu
Time: Class starts .
<figcaption>.Ruby annotation for East Asian text: 漢字
contenteditable true spellcheck false
Links & Navigation
In-page anchor · External · Telephone · Email · Download (data URI)
Image map:
Images & Media
Picture element
Audio
Tiny silent WAV via data URI for offline demo.
Video + captions
Embeds, Inline SVG & Canvas
iframe (srcdoc)
object & embed
Inline SVG
Canvas
Forms & Controls
Tables & Lists
| Item | Qty | Price |
|---|---|---|
| Alpha | 2 | $3 |
| Beta | 5 | $4 |
| Gamma | 1 | $7 |
| Total | $25 | |
Lists
- Unordered list
- Nested
- Child
- Ordered reversed (value set)
- Manual value = 10
- HTML
- Markup language for documents on the web.
- CSS
- Style sheet language for presentation.
Horizontal rule above separates content.
Interactive Elements
<details>
Click to toggle details
Expandable content without JavaScript.
<dialog>
Hidden & translate
This text was hidden using the hidden attribute.
Brand name (no translate): WebX
Internationalization (i18n) & Direction
Texte en français avec lang="fr".
This text is forced RTL with bdo.
Bi-directional isolate with bdi: مرحبا mixed with English.
Accessibility Hints
- Use semantic elements (
header,nav,main,section,article,aside,footer). - Associate labels with inputs (
label foror wrapping). - Alt text for images,
figure/figcaptionfor complex visuals. - Use
aria-labelwhere semantics aren’t sufficient.
Scripting, Template & Web Components
<template> cloning
Custom Element
Hello from <hello-box> — mood:
Dataset & data-* attributes
Open console: document.getElementById('ds').dataset
Download this Demo
You can save this page directly from the browser (File → Save), or download a generated copy.