Search⌘ K

Accessible Radio Button Focus

Learn how to write CSS that adds a custom 2px solid blue focus ring around radio buttons. This lesson helps you enhance accessibility by providing clear keyboard focus indicators without altering HTML or using JavaScript.

Problem description

Given an HTML page with an <input class="accessible-radio" type="radio" name="choice">, write CSS to meet the ...