HTML Lab Examples
Sixteen standalone demo pages that follow the track's lesson order, grouped by phase.
Each demo is a complete, commented HTML file. Every row has two links:
View code opens the source in the code viewer; Preview
opens the rendered page in a new browser tab. Change one thing in the source, then reload
the preview — that loop is where the learning happens.
Foundations
The skeleton and the syntax rules every later demo assumes.
| # | Description | View code | Preview |
|---|---|---|---|
| 1 | Hello world — the minimal document | View | Preview |
| 2 | Document structure — head, body, landmarks | View | Preview |
| 3 | Text and headings — inline semantics, quotes, abbr | View | Preview |
Content and navigation
Lists, every anchor job, alt-text styles, and a fully scoped table.
| # | Description | View code | Preview |
|---|---|---|---|
| 4 | Lists and links — ul/ol/dl, fragments, mailto, tel | View | Preview |
| 5 | Images and figure — alt styles, width/height, caption | View | Preview |
| 6 | Data table — caption, scope, thead/tbody/tfoot | View | Preview |
Forms and data
The form contract and the browser's validation engine.
| # | Description | View code | Preview |
|---|---|---|---|
| 7 | Contact form — labels, types, autocomplete, submit | View | Preview |
| 8 | Validated form — required, pattern, :user-invalid | View | Preview |
Semantics and accessibility
Landmarks, skip links, widget semantics, and the full social head.
| # | Description | View code | Preview |
|---|---|---|---|
| 9 | Semantic page — landmarks and skip link | View | Preview |
| 10 | Accessible widgets — native vs div button, aria-expanded | View | Preview |
Platform APIs
data-* contracts, native widgets, and DOM-resident graphics.
| # | Description | View code | Preview |
|---|---|---|---|
| 12 | Data attributes — dataset in JS and CSS | View | Preview |
| 13 | Details and dialog — native disclosure and modal | View | Preview |
| 14 | Inline SVG — styleable DOM shapes | View | Preview |
Delivery and quality
Embedding with sandbox and the loading-attribute toolkit.
| # | Description | View code | Preview |
|---|---|---|---|
| 15 | Embed iframe — sandbox, title, size, lazy | View | Preview |
| 16 | Loading hints — eager vs lazy vs deferred | View | Preview |
How to use them. The demos need nothing but a browser — each file is
self-contained. In the code viewer, change one attribute and study what you would expect
to change; in the preview, verify. Larger multi-file study projects are on the
Study Projects page.