Dialog in Practice
Go beyond the basics of the dialog element: the top layer, validating a form before it closes, closing rules (Escape, click outside, closedby, requestClose), focus return, scroll locking, optional animation, and how to choose between a dialog, a popover, and details. Includes a live rename dialog lab and a decision picker.
Focus Management
Learn how to move keyboard focus on purpose: how focus() and document.activeElement work, when to move focus (dialogs, deleted items, form errors, page changes), how to return focus, and how to avoid stealing it. Includes three live labs: a delete-and-lose-focus lab, a dialog focus lab, and a form error summary lab.
Keyboard Accessibility
Learn how to make every part of a web page work with a keyboard: which elements are focusable, how tabindex and focus order work, how to style focus with :focus-visible, how to avoid keyboard traps, and how arrow keys and roving tabindex work in custom widgets. Includes a live focus-order lab, a focus-style test, and a roving toolbar.
The inert Attribute
Learn the inert attribute: one attribute that makes part of a page unreachable by mouse, keyboard, and screen reader. Covers what inert changes, how it differs from disabled, hidden, and aria-hidden, patterns such as off-canvas menus and saving states, fallbacks, accessibility, and security notes. Includes a focus lab, an off-canvas menu lab, and a which-tool quiz.