text-decoration-style property

Description

CSS text-decoration-style defines the style of text decoration lines. The following are the styles of text decoration lines.

Syntax

text-decoration-style : solid | double | dotted | dashed | wavy

Property values

solidDefault

The text decoration line is a solid line.

text-decoration-style: solid;

double

The text decoration line is double line.

text-decoration-style: double;

dotted

The line consists of series of dotts.

text-decoration-style: dotted;

dashed

The line consists of series of squared shaped dashes.

text-decoration-style: dashed;

wavy

The line is not straight but wavy type.

text-decoration-style: wavy;

Applicable to

It applies to all elements

#CSS digger
Was this article helpful?

 
We are learning text decoration style property
×

Ctrl+D