Focus Visible
Focus Visible means that when someone uses a keyboard to move through a web page, they can clearly see which element is currently selected. This visual cue, often a highlight or outline around a link, button, or form field, helps people who navigate without a mouse know where they are on the page.
Focus Visible is WCAG Success Criterion 2.4.7 (Level AA), which requires that any keyboard-operable user interface have a mode of operation in which the keyboard focus indicator is visible. The criterion ensures that a user relying on keyboard navigation can perceive which component currently holds focus. Authors commonly implement or enhance this indicator using CSS, including the :focus and :focus-visible pseudo-classes; :focus-visible allows a visible focus indication to be applied based on user-agent heuristics (for example, when input comes from a keyboard rather than a pointing device). Meeting 2.4.7 addresses the presence of a visible indicator, but related considerations such as the appearance, contrast, and non-obscuring of the focus indicator are governed by other, separate success criteria and should be evaluated distinctly. Conformance with this criterion does not by itself guarantee an accessible or usable focus experience; manual and assistive technology testing is generally required.
Why it matters
For people who navigate the web without a mouse, including many keyboard-only users and people using certain assistive technologies, the visible focus indicator is often the only way to know which element is currently selected. Without a perceptible indicator, a user pressing Tab through links, buttons, and form fields can lose track of their position on the page, making it difficult or impossible to complete tasks such as filling out a form or activating a control. Focus Visible, WCAG Success Criterion 2.4.7 at Level AA, addresses this need by requiring that keyboard-operable interfaces have a mode of operation in which the focus indicator is visible.
Because Level AA is the conformance level most commonly cited as a target in accessibility policies, settlements, and agency guidance, a missing or suppressed focus indicator is a frequently flagged issue during accessibility evaluations. A common cause is CSS that removes default browser outlines (for example, setting an outline to none) without providing a replacement indicator, which can leave keyboard users with no visual cue at all.
It is important to understand what this criterion does and does not cover. Meeting 2.4.7 addresses the presence of a visible indicator, but the appearance, contrast, and whether the indicator is obscured by other content are governed by separate success criteria and should be evaluated distinctly. Conformance with 2.4.7 alone does not guarantee a usable focus experience, and this guidance is not legal advice; requirements evolve through regulation and case law, and organizations should consult qualified counsel and current agency rulemaking where legal obligations are at issue.
Who it's relevant to
Inside Focus Visible
Common questions
Answers to the questions practitioners most commonly ask about Focus Visible.