Open In App

Semantic-UI Table

Semantic UI is an open-source framework that uses CSS and jQuery to build great user interfaces. It is the same as a bootstrap for use and has great different elements to use to make your website look more amazing. 

Semantic UI has a bunch of components for user interface design. One of them is the Table component. Tables are an easy way to organize a lot of data. A table is an arrangement of data in rows and columns, or possibly in a more complex structure. 



Semantic UI Table Types:

Semantic UI Table States:



Semantic-UI Table Variations:

Syntax:

<table class="ui celled table">
   <tr>
       <td> Content </td>
   </tr>
</table>

The below example illustrates the different states of tables.

Example 1: This example describes the Table States in Semantic UI.




<!DOCTYPE html>
<html>
  
<head>
    <link rel="stylesheet" href=
</head>
  
<body>
    <div class="ui container">
        <br/><br/>
        <h2 class="ui header green">GeeksforGeeks</h2>
        <b> <p>Semantic UI Table States</p></b>
        <hr>
        <table class="ui celled table">
            <!-- Table Created-->
            <thead>
                <tr>
                    <th>States Name</th>
                    <th>Output</th>
                </tr>
            </thead>
            <tbody>
                <tr class="warning">
                    <td>Warning </td>
                    <td><i class="attention icon"></i
                       Alerting the user
                    </td>
                </tr>
                <tr class="active">
                    <td>Active</td>
                    <td>Selected value</td>
                </tr>
                <tr class="disabled">
                    <td>Disabled</td>
                    <td>Disabled value</td>
                </tr>
                <tr class="error">
                    <td>Error</td>
                    <td>Error value</td>
                </tr>
                <tr class="positive">
                    <td>Positive</td>
                    <td>Positive value</td>
                </tr>
            </tbody>
        </table>
    </div>
</body>
</html>

Output:

The Different States of Table

Reference: https://semantic-ui.com/collections/table.html


Article Tags :