CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS text decoration Property

CSS text-decoration Property



The text-decoration property is used to set the decoration added to the text. It is a shorthand property for:-

  1. text-decoration-line
  2. text-decoration-color
  3. text-decoration-style
  4. text-decoration-thickness


Default Value:-


Its default value is none currentColor solid auto.




Its syntax is:- text-decoration: text-decoration-line text-decoration-color text-decoration-style text-decoration-thickness | initial | inherit;


Further Explanation:-


Value Description
text-decoration-line Sets the kind of text decoration to use.
text-decoration-color Sets the color of the text-decoration.
text-decoration-style Sets the style of the text-decoration.
text-decoration-thickness Sets the thickness of the decoration line.
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS