focusable element
An element that can receive keyboard focus, such as a link, button, form field or anything with tabindex="0".
In more detail
Focus traps find the first and last focusable elements in a container to wrap between. ARIA roles do not make an element focusable; tabindex or a native element does.
Related terms
- keyboard focus — The state of being the one element on the page that receives keyboard input, usually shown with an outline.
- tabindex — The HTML attribute that controls whether an element can be focused and whether it is in the tab order.
- focus trap — Code that keeps keyboard focus inside a container, such as an open modal, wrapping from the last element back to the first.
Taught in
- Focus Management: Trapping, Restoration & Focus Rings — Design Systems & Component Engineering
- WAI-ARIA Semantics: Roles, States & Accessible Name Computation — Design Systems & Component Engineering