CSS CSS Selectors Going Further with Attribute Selectors and Pseudo-Classes Element States Pseudo-Classes

Why is his check box all

Why is his check box all bold in blue when checked?

input[type="checkbox"]:checked + label {
  font-weight: bold;
}

1 Answer

Looks like default styling applied by the browser (safari). When I look at it on Chrome, it is grey not blue.

Hope this helps :)