CSS text-decoration-line Property


The text-decoration-line property is used to sets various kind of text-decoration. The text-decoration may include many values such as underline, overline, line-through, etc. It can be possible to combine more than one text-decoration property. For Example- underline and overline values to display lines both under and over the text.

Note: You can also combine more than one value, like underline and overline to display lines both under and over the text.

CSS Syntax

text-decoration-line: none|underline|overline|line-through|initial|inherit;

Example -