Turning Learners Into Developers
Codekilla
CODEKILLA
// examples.html()

HTML examples.

The skeleton of every website.

HTML301 programs runnable inline31 chapters
Chapter 01 of 31·10 programs

HTML Basics

document skeleton, doctype, head vs body, headings h1-h6, paragraphs, line breaks, horizontal rules, comments, title & meta, a full starter page

Chapter 02 of 31·1 programs

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.

Chapter 03 of 31·10 programs

Text & Typography

bold/italic/underline semantics, strong vs b, em vs i, mark, small, sub/sup, blockquote & cite, pre & code, abbr, address

Chapter 05 of 31·10 programs

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

Chapter 06 of 31·10 programs

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

Chapter 07 of 31·10 programs

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

Chapter 08 of 31·10 programs

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

Chapter 09 of 31·10 programs

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

Chapter 10 of 31·10 programs

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

Chapter 11 of 31·10 programs

Semantic Layout

header/main/footer, nav, section vs div, article, aside, figure, heading hierarchy, landmark roles overview, one-page semantic layout, blog post structure

Chapter 12 of 31·10 programs

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

Chapter 13 of 31·10 programs

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

Chapter 14 of 31·10 programs

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

Chapter 15 of 31·10 programs

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

Chapter 16 of 31·10 programs

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,

Chapter 17 of 31·10 programs

Global Attributes

id vs class, style attribute, title tooltips, lang per element, dir rtl, hidden, contenteditable, spellcheck, translate, accesskey

Chapter 18 of 31·10 programs

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

Chapter 19 of 31·10 programs

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

Chapter 20 of 31·10 programs

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

Chapter 21 of 31·10 programs

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

Chapter 22 of 31·10 programs

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

Chapter 23 of 31·10 programs

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

Chapter 24 of 31·10 programs

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

Chapter 25 of 31·10 programs

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

Chapter 26 of 31·10 programs

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

Chapter 27 of 31·10 programs

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,

Chapter 28 of 31·10 programs

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

Chapter 29 of 31·10 programs

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

Chapter 30 of 31·10 programs

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

Chapter 31 of 31·10 programs

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