Open In App

Semantic-UI Segment Types

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 Segments component. Segments are used to display different sections of relatable content. Depending on the requirements of the usage of segments there are different types of it.



Semantic UI Segment Types:

Syntax:



<div class="ui segment">
   ...
</div>

Example: The below example illustrates different types of segments.




<!DOCTYPE html>
<html>
  
<head>
    <link rel="stylesheet" href=
</head>
  
<body>
    <div class="ui container">
        <br/><br />
        <h2 class="ui header green">
            GeeksforGeeks
        </h2>
        <b>Semantic UI Segment Types</b>
        <hr>
  
        <div class="ui segment" style="width:700px;">
            <h3>Segment</h3>
            <p>
                GeeksforGeeks Courses - Interactive 
                LIVE & Self-Paced Courses. 
            </p>
        </div>
  
        <div class="ui raised segment" style="width:700px;">
            <h3>Raised Segment</h3>
            <p>
                Data Structures and Algorithms - Self Paced. 
                Most popular course on DSA trusted by over 
                6 ,000 students!
            </p>
        </div>
  
        <div class="ui piled segment" style="width:700px;">
            <h3>Piled Segment</h3>
            <p>
                Complete Interview Preparation - Self 
                Paced. A placement preparation pack 
                built with years of expertise.
            </p>
        </div>
        <div class="ui stacked segment" style="width:700px;">
            <h3>Stacked Segment</h3>
  
            <p>
                Amazon SDE Preparation Test Series. 
                A test series that will help you 
                prepare for coding interviews for 
                Amazon.
            </p>
        </div>
    </div>
</body>
  
</html>

Output:

Segment Types

Reference: https://semantic-ui.com/elements/segment.html


Article Tags :