CSS Text-decoration Property – Underline, overline, and line-through

CSS

0 Comments

The text-decoration property lets you decorate your text by adding (or removing) an underline, overline, or line-through.

Example

HTML

<p class="underline">underline</p>
<p class="overline">overline</p>
<p class="line-through">line-through</p>
<p class="none">no decoration (none)</p>

CSS

.underline {
    text-decoration: underline;
}

.overline {
    text-decoration: overline;
}

.line-through {
    text-decoration: line-through;
}

.none {
    text-decoration: none;
}

Result

Practice in Editor

Leave a Comment