♿Focus Indicator
Also known as Focus Ring, Focus Outline, Visible Focus
The ring that shows which control the keyboard is on right now.
Think of it like
It is like a torch beam in the dark. It shows exactly where you are pointing.
Example
Emma tabs through a site with no focus ring. She presses Enter and buys the wrong item.
Why it matters
Without it, keyboard users cannot see where they are, so they cannot use the page.
Definition
Example code
css
button:focus-visible {
outline: 3px solid var(--accent);
outline-offset: 2px;
}Common mistake
Key takeaways
- 1The keyboard's pointer. Shows where you are.
- 2Always visible. Never removed.
- 3Style, do not hide. Make it match the brand.