ARIA Landmarks and Semantic HTML: When to Use ARIA
ARIA landmarks and semantic HTML: how header, nav, main, aside, footer, section, form and search map to roles, labeling repeats, and when ARIA is needed.
Tag
19 articles
ARIA landmarks and semantic HTML: how header, nav, main, aside, footer, section, form and search map to roles, labeling repeats, and when ARIA is needed.
Details and summary build accordions in HTML: the open attribute, toggle event, exclusive groups with name, styling the…
The HTML popover API explained: the popover attribute, popovertarget buttons, auto vs manual, top layer, light dismiss, styling…
The picture element handles art direction and format switching: media and type on source, AVIF and WebP fallbacks,…
Srcset and sizes explained: x and w descriptors, how the browser picks an image, worked examples, writing accurate…
Native lazy loading for images and iframes: browser thresholds, why lazy-loading your LCP image hurts, layout shift, and…
The HTML search element and input type=search: the search landmark, browser support, GET forms, clear buttons, result counts,…
Native form validation in HTML5: required, pattern, min, max and length rules, :user-invalid styling, validity states, and when…
Web workers keep the main thread responsive: module workers, postMessage, transferable objects, their limits, and when they are…
localstorage vs sessionstorage explained: scope, lifetime, quotas, the storage event, Safari's 7-day cap, security risks, and when to…
Canvas vs SVG: how the 2D context works, sharp drawing on high-DPI screens, animation loops, OffscreenCanvas, accessibility, and…
Build accessible modals with the HTML dialog element: showModal vs show, the top layer, ::backdrop, Escape and cancel,…
Autocomplete and inputmode control mobile keyboards and autofill: autocomplete tokens, enterkeyhint, autocapitalize, spellcheck, and one-time-code.
Accessible forms with plain HTML: labels, fieldset and legend, hints and errors with aria-describedby, required fields, and error…