accessibility
8 tutorials tagged “accessibility”.
- Dialogs and PopupsThe older alert, confirm and prompt, why they block the page, and the modern dialog element: showModal, close, return values and forms in dialogs.
- DOM AnimationsAnimate the page from JavaScript with CSS transitions and classes, requestAnimationFrame, and the Web Animations API, while respecting reduced motion settings.
- Forms and ValidationRead form data with FormData, handle submit and input events, use built-in HTML validation and the Constraint Validation API, and show custom error messages.
- Mouse, Keyboard and Pointer EventsHandle clicks, pointer events for mouse, touch and pen, keyboard events with event.key, focus events, and make custom controls work with the keyboard too.
- Project: CounterBuild an accessible counter step by step: HTML first, state and a render function, limits, keyboard shortcuts, screen reader announcements and saving.
- Project: Form ValidationBuild a sign-up form with live, accessible validation: HTML rules first, pure validators, well-timed errors, a password strength meter and safe submits.
- Project: Modal DialogBuild an accessible confirmation modal with dialog: opening and closing, focus handling, Escape and backdrop clicks, a promise-based API, and safe text.
- SVG with JavaScriptCreate and change SVG graphics from JavaScript: the SVG namespace, createElementNS, attributes, viewBox, events on shapes and accessible charts.