HTML examples.
The skeleton of every website.
HTML Basics
document skeleton, doctype, head vs body, headings h1-h6, paragraphs, line breaks, horizontal rules, comments, title & meta, a full starter page
HTML — Starter Programs
Minimal runnable programs to get you started with HTML. Admins can add more via the admin panel or the AI bulk-generate button.
Text & Typography
bold/italic/underline semantics, strong vs b, em vs i, mark, small, sub/sup, blockquote & cite, pre & code, abbr, address
Images & Media Basics
img src/alt, width/height, figure & figcaption, picture element, srcset responsive images, lazy loading, image maps, background vs content images, favicon markup, image gallery grid
Lists
unordered, ordered with start/reversed/type, nested lists, description lists dl/dt/dd, list-based nav menu, checklist styling hooks, steps list, multi-column list, list in article, FAQ list
Tables
table/tr/td/th basics, thead/tbody/tfoot, caption, colspan/rowspan, scope for accessibility, col & colgroup, zebra-friendly structure, pricing table, schedule table, data table with summary
Forms — Inputs
text/password/email inputs, labels & for, placeholder vs label, number & range, date/time inputs, color picker, file upload, hidden inputs, readonly vs disabled, search input
Forms — Controls & Structure
radio groups, checkboxes, select & optgroup, datalist autocomplete, textarea, fieldset & legend, buttons submit/reset/button, form action & method, autofocus & tabindex, complete signup form
Form Validation Attributes
required, minlength/maxlength, min/max/step, pattern with regex, type=email/url validation, novalidate, inputmode, title hint on pattern, styling hooks for validity, full validated form
Semantic Layout
header/main/footer, nav, section vs div, article, aside, figure, heading hierarchy, landmark roles overview, one-page semantic layout, blog post structure
Page Structure Patterns
hero section markup, card component, media object, sidebar layout, sticky footer structure, split screen, pricing section, testimonial block, timeline markup, FAQ accordion structure
Head & Metadata
meta charset & viewport, description meta, Open Graph tags, twitter card tags, canonical link, robots meta, theme-color, preconnect & dns-prefetch, stylesheet & script loading attrs, complete SEO-read
HTML Entities & Symbols
reserved chars lt/gt/amp, quotes & apostrophes, copyright/trademark, currency symbols, arrows, math symbols, accented characters, non-breaking space & soft hyphen, emoji-safe markup, entity reference
Iframes & Embeds
iframe basics, sandbox attribute, YouTube embed pattern, map embed pattern, lazy iframes, allow & referrerpolicy, embedding another page, object & embed elements, responsive iframe wrapper markup, mul
Audio & Video
audio element & controls, multiple sources, video with poster, autoplay muted loop, preload strategies, track element captions, download fallback link, video gallery structure, audio playlist markup,
Global Attributes
id vs class, style attribute, title tooltips, lang per element, dir rtl, hidden, contenteditable, spellcheck, translate, accesskey
Data Attributes & Hooks
data-* basics, data attributes as JS hooks, data-driven styling hooks, component state via data attributes, data attributes in lists, product card with data-*, table rows with data ids, tabs markup wi
Accessibility Fundamentals
alt text quality, label associations, button vs link semantics, aria-label & aria-labelledby, aria-hidden, role usage, focus order & tabindex 0/-1, visually-hidden text pattern, accessible icon button
ARIA Patterns
aria-expanded disclosure, aria-controls, aria-current nav, alert & status live regions, progressbar semantics, tablist/tab/tabpanel, menu button pattern, dialog semantics, tooltip aria, accessible acc
Interactive Elements
details & summary accordion, dialog element, popover attribute, progress element, meter element, output element, checkbox-hack toggle markup, star rating markup, native date picker widget page, intera
HTML5 Structural Extras
template element, time element & datetime, wbr word breaks, ruby annotations, bdi/bdo, ins & del, kbd & samp & var, dfn definitions, cite in reviews, glossary page
Forms — Advanced
form attribute on external controls, formaction/formmethod overrides, multiple file input & accept, image submit button, select multiple & size, disabled fieldset, label wrapping vs for, autocomplete
Tables — Advanced
sticky header structure, responsive table wrapper, numeric alignment hooks, footer totals, grouped rows with headers, matrix table with dual headers, calendar as table, comparison matrix, headers attr
Media & Responsive Markup
viewport meta variants, art-direction with picture, sizes attribute, source media queries, orientation-specific images, high-DPI images, video source switching, print-only & screen-only hooks, respons
Microdata & SEO Markup
schema.org Article microdata, Product with offers, BreadcrumbList, FAQPage markup, HowTo markup, Organization & logo, Person profile, Event markup, Review & rating, JSON-LD script variant
Emails & Print
email-safe table layout, inline style hooks, preheader text, bulletproof button markup, print stylesheet link, page-break hooks, printable invoice structure, letterhead layout, printable certificate,
Web Components Markup
custom element usage markup, template cloning target, declarative shadow DOM, named slots card, props via attributes, component composition page, widget gallery, tabs component markup, rating componen
Performance Markup
script defer vs async, module scripts, preload critical assets, prefetch next page, fetchpriority, decoding async images, inline critical css hook, font loading markup, minimal blocking head, fast art
Real-World Pages I
personal portfolio page, restaurant menu page, event landing page, product detail page, blog index page, contact page with map embed, photo gallery page, documentation page with TOC, login & signup pa
Real-World Pages II
resume/CV page, recipe page with schema, travel itinerary page, small business homepage, newsletter archive page, job board listing page, quiz form page, survey with all input types, dashboard shell m
