Intermediate HTML & CSS
Q73 / 100

What is the purpose of the "outline" CSS property, and why should it not simply be set to "none" for focused interactive elements?

Correct! Well done.

Incorrect.

The correct answer is B) Outline draws a line around an element without affecting layout, commonly used to show keyboard focus; removing it without an alternative focus style harms keyboard-only users who rely on it to see which element is active

B

Correct Answer

Outline draws a line around an element without affecting layout, commonly used to show keyboard focus; removing it without an alternative focus style harms keyboard-only users who rely on it to see which element is active

Explanation

The default focus outline is a key accessibility feature for keyboard navigation; if removed, a custom visible focus style must be provided instead so users can track focus.

Progress
73/100