Open In App

Tachyons Typography Text Decoration

Tachyons toolkit is used to make a responsive website. In this article, we will learn how to decorate text using the CSS toolkit named Tachyons. 

Tachyons Typography Text Decoration is used to decorate text with underlines. It can also remove the default underlines browsers put on links.



Tachyons Typography Text Decoration Classes:

Syntax:



<element-name class="class-name">
    ...
</element-name>

Example 1: Below example demonstrates the Tachyons Typography Text Decoration using no-underline and underline classes.




<!DOCTYPE html>
<html>
  
<head>
    <link rel="stylesheet" href=
</head>
  
<body>
    <center>
        <h1 class="green">
            GeeksforGeeks
        </h1>
        <h4>
            No Underline
        </h4>
  
        <p class="no-underline">
            A computer science portal for geeks
        </p>
  
        <h4 class="underline">
            Underline
        </h4>
        <p class="underline">
            A computer science portal for geeks
        </p>
    </center>
</body>
  
</html>

Output:

 

Example 2: Below example demonstrates the Tachyons Typography Text Decoration using strike and underline classes.




<!DOCTYPE html>
<html>
  
<head>
    <link rel="stylesheet" href=
</head>
  
<body>
    <center>
        <h1 class="green">
            GeeksforGeeks
        </h1>
        <h4>
            Strike:
        </h4>
  
        <p class="strike">
            A gamming portal.
        </p>
  
        <p class="underline">
            A computer science portal for geeks
        </p>
    </center>
</body>
  
</html>

Output:

 

Reference: https://tachyons.io/docs/typography/text-decoration/


Article Tags :