CSS text decoration style

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.valueDescription
1solidUsed to define the single line decoration of the text. The value for this is solid.
2doubleUsed to define the double line decoration of the text. The value for this is double.
3dottedUsed to define the dotted line decoration of the text. The value for this is dotted.
4dashedUsed to define the dashed line decoration of the text. The value for this is dashed.
5wavyUsed to define the wavy line decoration of the text. The value for this is wavy.
6initialUsed to define as the property initial value.
7inheritUsed to define the computed value of property on the elements parent.
8unsetUsed to define the property either acts as inherit or initial, depending on the property if it is inherited or not.

Leave a comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.