Open In App

Semantic-UI Segment Types

Last Updated : 29 Mar, 2022
Like Article

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:

  • Segment: Basic segment displaying content.
  • Placeholder Segment: This class is used to display conditional content.
  • Raised: This class is used to elevate the segment.
  • Stacked: This class is used to show segments composed of multiple pages.
  • Piled: This class is used to make the segment look like a pile of pages.
  • Vertical Segment: This class is used to format segments vertically.


<div class="ui segment">

Example: The below example illustrates different types of segments.


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


Segment Types


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads