CSS text-decoration Property
To specify a drop shadow for a block of text
Definition and Notes.
1. The CSS text-decoration property is used to add lines above, under, and /or through the text.
2. As a good development practice, do not use underline for anything other than links. The color of text-decoration is by default same as the color of the text.Unless specified otherwise.
CSS text-decoration property.
View in Splitscreen»
Code-Editor:Note- The property also supports a blink value, that makes the element blink, but not supported by any major browser
|none||No decoration is performed on the text. Its the default value.|
|overline||To draw a line above the text|
|underline||To draw a line under the text|
|line-through||To draw a line through the middle of the text.|
|inherit||The value is inherited from the parent element.|
|Value||none | [underline || overline || line-through || blink]|
|Applies to||All Elements|
|Computed Value||Same as declared Value.|