The text-decoration:
accepts the following declaration keywords;
underline
overline
line-through
none
.text-1 {
text-decoration: none;
}
.text-2 {
text-decoration: underline;
}
.text-3 {
text-decoration: overline;
}
.text-4 {
text-decoration: line-through;
}
.text {
background-color: rgb(186, 186, 186);
padding: 0.75em;
text-align: center;
}
<h2 class="text text-1">Some text to decorate.</h2>
<h2 class="text text-2">Some text to decorate.</h2>
<h2 class="text text-3">Some text to decorate.</h2>
<h2 class="text text-4">Some text to decorate.</h2>