:checked {
    /* ... */
}
<form>
    <fieldset>
        <legend>Select an Interesting Topic</legend>
        <input type="radio" name="favorite" id="html" checked>
        <label for="html">HTML</label>
        <br>
        <input type="radio" name="favorite" id="css">
        <label for="css">CSS</label>
    </fieldset>
    <fieldset>
        <legend>Privacy Policy Agreement</legend>
        <input type="checkbox" name="privacy" id="privacy" checked>
        <label for="privacy">Yes, I agree.</label>
    </fieldset>
</form>
/* Select checked input elements */
input:checked {
    border: none;
    outline: 3px solid red;
}

/* Select checked input elements and
   style the label element immediately following them */
input:checked + label {
    background-color: yellowgreen;
    color: white;
}
Rendered Output Try changing the checked state! The styles will change.

See more details on caniuse.com.