Interactive online courses HTML Academy
2026-03-09 10:55 Diff

Let’s work on the selected state of our label::before or “pseudo-checkbox”.

Transform the pseudo-checkbox when it is selected into a checkmark, which is a flattened turquoise block without a border along the top and right edges.

To manage the selected state of the pseudo-box, let’s create a CSS rule with the following selector:

input[type="checkbox"]:checked ~ label::before { ... }