Interactive online courses HTML Academy
2026-03-09 12:22 Diff
  • Theory
  • Theory
  • Comments

Radio buttons, step 2

We have laid out the groundwork for our radio buttons. Now let’s figure out how to select them.

We will use the label::after label pseudo-element as a “selection element.”

Assign a width, height, and color to label::after, and let’s slightly enlarge it with a transformation.

Comments