# :checked

Styles checkboxes and radio buttons that are selected.

## What does `:checked` do?

`:checked` styles checkboxes, radio buttons and options that are selected.

```css
input[type="checkbox"]:checked + label { text-decoration: line-through; }   /* a done to-do item */
```

Level: Apprentice · [More CSS terms at this level](https://www.ask-codey.com/glossary/subjects/css/apprentice)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/checked-css
