ARIA and Accessible Names in HTML Cheat Sheet
Apply ARIA roles, names, descriptions, states, live regions, relationships, and keyboard semantics without overriding strong native HTML behavior.
Open cheat sheet6 organized subcategories
Semantic markup, forms, accessibility, and document structure.
Choose a focus
48 focused guides grouped by the kind of task you need to complete.
Structure documents, describe content, and build accessible navigation and data.
Browse subcategory 8 guidesCollect input and build accessible, event-driven browser interactions.
Browse subcategory 7 guidesPresent responsive media, graphics, frames, capture, and immersive content.
Browse subcategory 9 guidesWork with document nodes, browser events, observers, navigation, and timing.
Browse subcategory 8 guidesLoad resources, communicate in real time, and build resilient web applications.
Browse subcategory 7 guidesProtect applications and use browser storage, identity, files, and device APIs.
Browse subcategory9 cheat sheets
Structure documents, describe content, and build accessible navigation and data.
Apply ARIA roles, names, descriptions, states, live regions, relationships, and keyboard semantics without overriding strong native HTML behavior.
Open cheat sheetBuild a dependable HTML document head with language, encoding, viewport, titles, descriptions, canonical links, icons, crawler directives, social cards, and structured data.
Open cheat sheetUse id, class, lang, dir, hidden, inert, tabindex, contenteditable, spellcheck, translate, and data attributes with correct document-wide semantics.
Open cheat sheetDeclare content languages and bidirectional text correctly, then format locale-sensitive dates, numbers, lists, plurals, and text with Intl.
Open cheat sheetCreate meaningful HTML links and navigation landmarks with relative URLs, fragments, downloads, safe new tabs, current-page state, and skip links.
Open cheat sheetStructure ordered, unordered, and descriptive content with meaningful HTML text elements, quotations, edits, code, time, and machine-readable values.
Open cheat sheetAnnotate visible content with HTML microdata, model nested and identified items, choose correct value-bearing elements, and publish maintainable JSON-LD.
Open cheat sheetBuild accessible HTML data tables with captions, row and column headers, structural groups, spans, column metadata, and explicit header associations.
Open cheat sheetStructure accessible web pages with semantic HTML landmarks, headings, articles, sections, figures, time values, and lists.
Open cheat sheet8 cheat sheets
Collect input and build accessible, event-driven browser interactions.
Use buttons, select menus, meters, progress indicators, output, and form-associated controls with correct types, labels, states, and behavior.
Open cheat sheetCopy and paste text or rich data, handle clipboard events, respect activation and permissions, and share content with progressive fallbacks.
Open cheat sheetBuild dependable form validation with native constraints, ValidityState, custom errors, invalid events, and correct submission semantics.
Open cheat sheetBuild controlled inline editors with contenteditable, beforeinput, input, focus rules, plain-text mode, and explicit persistence boundaries.
Open cheat sheetBuild native disclosures, modal dialogs, and popovers with accessible HTML, explicit controls, focus-aware behavior, and top-layer styling.
Open cheat sheetBuild deliberate HTML drag-and-drop interactions with draggable sources, drop targets, DataTransfer payloads, operation feedback, cleanup, and accessible alternatives.
Open cheat sheetBuild clear, accessible HTML forms with labels, input types, validation, selects, and safe submission patterns.
Open cheat sheetBuild unified mouse, touch, and pen interactions with pointer capture, touch-action, coalesced input, accessible controls, and robust cancellation.
Open cheat sheet7 cheat sheets
Present responsive media, graphics, frames, capture, and immersive content.
Request fullscreen and video Picture-in-Picture safely with user activation, state events, permissions policy, feature detection, and accessible controls.
Open cheat sheetEmbed accessible HTML audio and video with native controls, multiple sources, posters, preload hints, captions, subtitles, transcripts, and safe playback behavior.
Open cheat sheetChoose canvas or SVG for web graphics, size canvases sharply, draw accessible fallbacks, structure inline SVG, and make graphics responsive.
Open cheat sheetEmbed external documents with accessible iframe titles, responsive sizing, lazy loading, sandbox restrictions, permissions policy, and safe cross-window messaging.
Open cheat sheetEmbed accessible, responsive, and efficient HTML images with alt text, dimensions, srcset, sizes, picture sources, and loading hints.
Open cheat sheetCapture cameras, microphones, and screens responsibly with constraints, permissions, track controls, recording, privacy indicators, and complete cleanup.
Open cheat sheetDesign robust browser audio graphs with user activation, precise scheduling, gain staging, analysis, AudioWorklet processing, and resource cleanup.
Open cheat sheet9 cheat sheets
Work with document nodes, browser events, observers, navigation, and timing.
Handle browser events with predictable propagation, scalable delegation, cancellable defaults, abortable listeners, and shadow-DOM-aware event paths.
Open cheat sheetInitialize at the right readiness state, pause hidden-page work, restore from the back-forward cache, and send final state without blocking navigation.
Open cheat sheetCreate DOM ranges, inspect user selections, replace or clone selected content, measure fragments, and handle form controls and shadow roots correctly.
Open cheat sheetSelect, traverse, create, move, replace, clone, and remove DOM nodes with safe construction patterns and predictable collection behavior.
Open cheat sheetBuild reusable DOM fragments and web components with template, slot, custom elements, shadow roots, lifecycle callbacks, and safe cloning.
Open cheat sheetParse and validate URLs, edit query strings, manage fragments and session history, and progressively enhance navigation without breaking browser controls.
Open cheat sheetObserve DOM mutations, viewport intersections, and element size changes with precise delivery timing, bounded callbacks, and reliable lifecycle cleanup.
Open cheat sheetMeasure navigation, resources, user flows, rendering, and responsiveness with PerformanceObserver while controlling overhead and data exposure.
Open cheat sheetCreate, coordinate, inspect, and clean up script-driven animations with keyframes, timing controls, promises, accessibility, and compositing.
Open cheat sheet8 cheat sheets
Load resources, communicate in real time, and build resilient web applications.
Build reliable Fetch API clients with honest HTTP handling, CORS and credentials, abortable deadlines, incremental response parsing, and stream backpressure.
Open cheat sheetLoad and embed classic scripts, JavaScript modules, stylesheets, fonts, resource hints, priority hints, and deferred embeds with predictable execution and fallback behavior.
Open cheat sheetImplement permission-respectful web push, service-worker notifications, click routing, subscription security, and resilient application badges.
Open cheat sheetRegister scoped service workers, manage install and activation, intercept fetches, build deliberate offline caching strategies, and ship compatible updates safely.
Open cheat sheetCoordinate tabs and workers with scoped Web Locks, bounded acquisition, leader election, messaging, deadlock prevention, and durable storage transactions.
Open cheat sheetRun JavaScript off the main thread with dedicated and shared workers, structured cloning, transferable data, MessageChannel ports, lifecycle controls, and error handling.
Open cheat sheetBuild production WebRTC calls with negotiation, ICE, media transceivers, data channels, TURN, diagnostics, security, and deterministic cleanup.
Open cheat sheetBuild resilient browser realtime clients with WebSockets or Server-Sent Events, explicit framing, reconnection, flow control, security, and cleanup.
Open cheat sheet7 cheat sheets
Protect applications and use browser storage, identity, files, and device APIs.
Work safely with user-chosen files, directories, writable streams, permissions, OPFS, worker sync handles, quotas, and cleanup.
Open cheat sheetSelect, inspect, validate, preview, read, and upload user-chosen files with input type=file, File, FileReader, object URLs, FormData, and server-side checks.
Open cheat sheetImplement WebAuthn passkey registration and sign-in with correct encoding, conditional UI, user verification, and mandatory server-side validation.
Open cheat sheetUse browser cryptographic primitives safely for randomness, hashing, authenticated encryption, signatures, derivation, and controlled key import and export.
Open cheat sheetRequest geolocation, camera, microphone, display capture, and motion data with secure-context checks, meaningful consent, cleanup, and fallbacks.
Open cheat sheetDeploy restrictive Content Security Policy, verify third-party resources with SRI, and reduce DOM injection risk with Trusted Types and safe sinks.
Open cheat sheetStore browser data safely with localStorage, sessionStorage, IndexedDB transactions, indexes, quota estimates, persistence, and migrations.
Open cheat sheet