Open In App

Tachyons Elements

Tachyons Toolkit is a free and open-source that is used to create a responsive website. In this article, we will learn how to include elements using the Tachyons toolkit. 

Tachyons elements are used to insert images, lists, links, forms, and tables. 



The total number of elements is listed below.

Classes Used:



Syntax:

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

Example 1: In the below code we will make use of the link element to include a link.




<!DOCTYPE html>
<html lang="en">
  
<head>
    <link rel="stylesheet" href=
  
    <style>
        div {
            text-align: center;
        }
    </style>
</head>
  
<body>
    <h2 style="color:green;text-align:center;">
        GeeksforGeeks
    </h2>
    <h3 style="text-align:center;">
        A computer science portal for geeks</h3>
  
    <div>
        <a href="#" class="link underline blue hover-orange">
            link text</a>
    </div>
</body>
  
</html>

Output:

 

Example 2: In the below code we will make use of the form element to include the form in the webpage.




<!DOCTYPE html>
<html lang="en">
  
<head>
    <link rel="stylesheet" href=
</head>
  
<body>
    <center>
        <h1 style="color:green;">
            GeeksforGeeks
        </h1>
        <h3>
            Tachyons Element Forms
        </h3>
        <form>
            First Name:
            <input class="input-reset"
                type="text" /><br><br>
                  
            Last Name:
            <input class="input-reset"
                type="text" />
        </form>
    </center>
</body>
  
</html>

Output:

 

Reference: https://tachyons.io/docs/


Article Tags :