<!DOCTYPE html>
<title>Example</title>
<style>
input[type="checkbox"]:checked + label {
color: gray;
text-decoration: line-through;
}
</style>
<input type="checkbox" id="example">
<label for="example">Check this</label>