WCAG 2.4.7: Focus visible
In European law this criterion is EN 301 549 clause 9.2.4.7 — chapter 9, the part of the harmonised standard that applies to websites under the European Accessibility Act.
How to test by hand
Automated checks find only some failures of this criterion. These steps cover the rest.
You need
- Keyboard only
- Visual inspection
- Browser developer tools
Steps
- Click the address bar, then press Tab through every link, button and field. At each stop, check that you can see which element has focus, for example an outline or highlight.
- Stop on a focused element and wait a few seconds without pressing anything. The indicator must stay visible and not fade or disappear.
- Tab into text fields and check that a text cursor appears or the text is highlighted; on other controls check for a visible border or similar change.
- Where focus seems invisible, inspect the element in developer tools and look for outline or border styles that remove the indicator without a visible replacement.
- Check that focus is not taken away by script as soon as an element receives it, leaving no element visibly focused.
- Passes when
- When you navigate by keyboard, every focused element shows a visible indicator that stays for as long as it has focus.
- Fails when
- On some elements focus is invisible because the outline was removed, the indicator disappears after a moment, or script moves focus away.
Note: W3C allows the indicator to appear only in one mode of operation, such as when the keyboard is used, so a missing indicator after a mouse click is not by itself a failure; its contrast is covered by 1.4.11.
Steps are based on W3C’s Understanding WCAG 2.2: 2.4.7 Focus visible, which explains the intent, examples and exceptions in full. A manual check by you is a first look, not an audit: it does not make a site conformant and is not a substitute for testing by an experienced auditor with real assistive technology users. How we separate what a machine can and cannot check is explained in our methodology; for a full audit, see the directory of accessibility agencies.
What automation checks
axe-core has no rule for this criterion, so our own browser check a11y-focus-invisible flags a focused element that shows no visible outline or box-shadow. Honest limitation: heuristic — custom focus styles built from other CSS properties can trigger a false positive.
What automation cannot prove
An automated test finds some failures of WCAG 2.4.7; it cannot confirm the criterion is met. Whether the result actually works for people — in context, with real content — is a judgement call that needs a human auditor. Nothing on this page is a statement of conformance or legal advice. The full map of what our scanner covers and where it stops is on what our scanner checks.
Related guides
- Audyt WCAG i deklaracja dostępności: przewodnik
- EN 301 549: the European accessibility standard explained
- accessiBe Alternatives: What Replaces Each Part of It
- Accessibility Overlays vs. Real WCAG Audits: What Actually Delivers Compliance
- ARIA Labels Explained: aria-label vs aria-labelledby vs aria-describedby
- How to Write Alt Text: A Practical Guide (WCAG 1.1.1)
- WCAG accessibility audit: process, deliverables and how to choose a vendor
- WCAG conformance levels: A, AA and AAA — which one actually applies to you
Does your site pass this check?
Free instant scan. No signup required. WCAG 2.4.7 is one of the criteria it tests.
Scan website