Skip to content

Glossary: CSS Layout and Responsive Design

:focus-visible / :focus-within

Also written: :focus-visible, :focus-within

`:focus-visible` matches a focused element when a ring should show (mostly after keyboard use); `:focus-within` matches an element with focus anywhere inside it.

Where the book teaches it

Related terms

Focus