CSS text decoration style is used to define the style of underlining a text.


Syntax

Output

This is the heading

This is the HTML paragraph inside the div to show right alignment of text. This uses text align property to align the content.


CSS text decoration style values list

Sr. No. value Description
1 solid Used to define the single line decoration of the text. The value for this is solid.
2 double Used to define the double line decoration of the text. The value for this is double.
3 dotted Used to define the dotted line decoration of the text. The value for this is dotted.
4 dashed Used to define the dashed line decoration of the text. The value for this is dashed.
5 wavy Used to define the wavy line decoration of the text. The value for this is wavy.
6 initial Used to define as the property initial value.
7 inherit Used to define the computed value of property on the elements parent.
8 unset Used to define the property either acts as inherit or initial, depending on the property if it is inherited or not.

Leave a Reply

Your email address will not be published. Required fields are marked *