x
 
1
<!DOCTYPE html>
2
<title>Example</title>
3
<style>
4
    input[type="checkbox"]:checked + label {
5
        color: gray;
6
        text-decoration: line-through;
7
    }
8
</style>
9
10
<input type="checkbox" id="example">
11
<label for="example">Check this</label>