WCAG 2.4.7 Focus Visible: explained simply
Anyone using a site with a keyboard must be able to see which element currently has focus. Any visible indication will do, including the browser's own focus ring, as long as the page does not remove it. The criterion does not prescribe a shape, colour or size.
Last reviewed: Sources
How does your website stand?
The free check shows what can be measured automatically, with the location. No account.
Check website for freeWhat does the criterion require?
Keyboard users move through a page with the Tab key. If they cannot see where focus is, they cannot tell which element their next keystroke will act on. So any interface that can be operated by keyboard must have a mode of operation in which the focus indicator is visible.
"A mode of operation" means focus does not have to be visible all the time. A browser may, for instance, show it only when the keyboard is in use and not after a mouse click. Once it is shown, though, it must not fade away after a while.
No particular style is required. The focus ring the browser draws by default is enough; the W3C lists relying on it as a sufficient technique (G165). Besides keyboard users, it helps people with limited attention or short-term memory who need to find their place again.
Whether the focused element is hidden behind other content is a separate criterion, Focus Not Obscured (Minimum). Size and shape of the indicator are the subject of a Level AAA criterion.
Common failures
- Removing the outline with nothing in its place.
outline: noneoroutline: 0in the style sheet, usually so that nothing shows after a click, and no other styling for focus. Keyboard users are left guessing (F78). - Styling the outline into invisibility. The outline or border is still there but matches the background, or is otherwise styled so that it no longer stands out (F78).
- Taking focus away with script. An element drops focus the moment it receives it. That hides the indicator and breaks operation as well (F55).
- Hover styles without focus styles. The page styles what happens under the mouse pointer but not on focus, and has switched off the browser's ring.
Checked automatically and checked by you
What the automated check detects
Coverage: extensive
The automated check covers most of this criterion, but not every case.
What is measured is whether anything changes visibly on focus. Whether the change is prominent enough to be noticed is not decided by machine.
Rules
-
Focus is not visible
own.focus-not-visible
What you check yourself
You answer this question in the manual checks of your scan.
Is keyboard focus visible on every element?
- Move through the page with the Tab key and for every element check whether you can see at once where focus is. The automatic check only establishes whether anything changes on focus at all, not whether the change makes focus recognisable.
- Any visible highlighting of the focused element counts as visible; the criterion prescribes no particular form. A visible but faint focus ring is not a defect here; its contrast is asked under "Presentation" (WCAG 1.4.11).
- Also check elements on coloured or dark backgrounds, form fields, menu items, carousel buttons and elements in embedded content.
Classification
- Level
- AA
- Introduced in
- WCAG 2.0
- W3C explanation
- Understanding 2.4.7
Sources
- WCAG 2.2, W3C Recommendation
- Understanding 2.4.7
- W3C Techniques, F78: Failure due to styling element outlines and borders in a way that removes or renders non-visible the visual focus indicator, retrieved on November 27, 2026
- W3C Techniques, F55: Failure due to using script to remove focus when focus is received, retrieved on November 27, 2026
- W3C Techniques, G165: Using the default focus indicator for the platform so that high visibility default focus indicators will carry over, retrieved on November 27, 2026