VOOZH about

URL: https://www.geeksforgeeks.org/css/tailwind-css-text-decoration/

⇱ Tailwind CSS Text Decoration - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Tailwind CSS Text Decoration

Last Updated : 23 Jul, 2025

This class accepts more than one value in tailwind CSS. All the properties are covered in class form. It is the alternative to the CSS text-decoration property. This class is used to β€œdecorate” the content of the text. It is essentially decorating the text with different kinds of lines. 

Text Decoration classes:

  • underline 
  • line-through 
  • no-underline 

underline: This class is used to decorate the text with an underline.

Syntax:

<element class="underline ">...</element>

Example:

Output:

πŸ‘ Image

line-through: This class is used to stroke the text.

Syntax:

<element class="line-through">...</element>

Example:

Output:

πŸ‘ Image

no-underline: This class is used to remove the underline or line-through styling.

Syntax:

<element class="no-underline">...</element>

Example: 

Output:

πŸ‘ Image
no-underline
Comment