CSS Text Decoration
The text-decoration
property in CSS controls the decoration of text, allowing the addition of various styles like underline, overline, line-through, or none at all.
Basic Usage of the text-decoration
Property
The text-decoration
property can take several values:
text-decoration: none;
: Removes all text decorations.text-decoration: underline;
: Adds a line underneath the text.text-decoration: overline;
: Adds a line over the text.text-decoration: line-through;
: Adds a line through the text.