Semantic-UI Segment Groups Last Updated : 12 Apr, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report Semantic UI is an open-source framework that is used to create the best CSS user interfaces. With this framework, you can create beautiful, responsive layouts for your web application just by using simple HTML. In semantic UI, a group of segments can be added together to make a group-like structure.Semantic UI Segments Group Classes:segments- This class is used to create segments group in semantic UI.horizontal segments- This class is used to create horizontal segment groups in semantic UI.raised segments- This class is used to create raised segment groups in semantic UI.stacked segments- This class is used to create stacked segment groups in semantic UI.piled segments- This class is used to create piled segment groups in semantic UI.Syntax:<div class="ui segments | horizontal segments | raised segments | stacked segments | piled segments"> <div class="ui segment"> ... </div> ...</div>Example 1: Below example illustrates the color segment group. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> <link href= "https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css" rel="stylesheet" /> </head> <body> <div class="ui container"> <h1 class="ui green header">GeeksforGeeks</h1> <h2>Colored Segment Group</h2> <div class="ui segments"> <div class="ui segment"> <p>Java</p> </div> <div class="ui red segment"> <p>Python</p> </div> <div class="ui blue segment"> <p>C++</p> </div> <div class="ui green segment"> <p>Middle</p> </div> <div class="ui yellow segment"> <p>Bottom</p> </div> </div> </div> </body> </html> Output:Example 2: Below example illustrates the nested segment group. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> <link href= "https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css" rel="stylesheet" /> </head> <body> <div class="ui container"> <h1 class="ui green header">GeeksforGeeks</h1> <h2>Nested Segment Group</h2> <div class="ui segments"> <div class="ui segment"> <p>Available Courses</p> </div> <div class="ui segments"> <div class="ui segment"> <p>C++</p> </div> <div class="ui segment"> <p>Data Structures using C++</p> </div> <div class="ui segment"> <p>Python</p> </div> </div> <div class="ui horizontal segments"> <div class="ui segment"> <p>Jobs</p> </div> <div class="ui segment"> <p>Competitive Programming</p> </div> <div class="ui segment"> <p>Coding Competitions</p> </div> </div> </div> </div> </body> </html> Output:Example 3: Below example illustrates the horizontal segment group. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> <link href= "https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css" rel="stylesheet" /> </head> <body> <div class="ui container"> <h1 class="ui green header">GeeksforGeeks</h1> <h2>Horizontal Segment Group</h2> <div class="ui horizontal segments"> <div class="ui segment"> <p>Github</p> </div> <div class="ui segment"> <p>Facebook</p> </div> <div class="ui segment"> <p>Linkedin</p> </div> </div> </div> </body> </html> Output:Example 4: Below example illustrates the raised segment group. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> <link href= "https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css" rel="stylesheet" /> </head> <body> <div class="ui container"> <h1 class="ui green header">GeeksforGeeks</h1> <h2>Raised Segment Group</h2> <div class="ui raised segments"> <div class="ui segment"> <p>GSOC</p> </div> <div class="ui segment"> <p>Winter of Code</p> </div> <div class="ui segment"> <p>GSOD</p> </div> </div> </div> </body> </html> Output:Example 5: Below example illustrates the stacked segment group. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> <link href= "https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css" rel="stylesheet" /> </head> <body> <div class="ui container"> <h1 class="ui green header">GeeksforGeeks</h1> <h2>Stacked Segment Group</h2> <div class="ui stacked segments"> <div class="ui segment"> <p>Tutorials</p> </div> <div class="ui segment"> <p>Articles</p> </div> <div class="ui segment"> <p>Video Courses</p> </div> </div> </div> </body> </html> Output:Example 6: Below example illustrates the piled segment group. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> <link href= "https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css" rel="stylesheet" /> </head> <body> <div class="ui container"> <h1 class="ui green header">GeeksforGeeks</h1> <h2>Piled Segment Group</h2> <div class="ui piled segments"> <div class="ui segment"> <p>Fork Java</p> </div> <div class="ui segment"> <p>Data Structures using Java</p> </div> <div class="ui segment"> <p>Frontend using ReactJS</p> </div> </div> </div> </body> </html> Output: Comment More infoAdvertise with us Next Article Semantic UI T tarunsinghwap7 Follow Improve Article Tags : Web Technologies CSS Geeks Premier League Geeks-Premier-League-2022 Semantic-UI Semantic-UI Elements +1 More Similar Reads Semantic UI 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. It uses a class to add CSS to the elements. Semantic UIWhy Semantic UI?Semantic UI is 2 min read Introduction to Semantic UI 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.How to use Semantic UI ? Just google CDN semantic UI and you will get the CDN link for 2 min read Semantic-UI ButtonSemantic-UI | ButtonsSemantic 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. It can be used directly by CDN. There are different types of buttons in Semantic UI. 3 min read Semantic-UI Button TypesSemantic UI is a modern framework used in developing seamless designs for the website. It gives the user a lightweight experience with its components. It uses predefined CSS and jQuery to incorporate different frameworks. In this article, we will learn about the different kinds of buttons. The butto 3 min read Semantic-UI Button GroupsSemantic UI is a modern framework used in developing seamless designs for the website, It gives the user a lightweight experience with its components. It uses predefined CSS and jQuery to incorporate different frameworks. Semantic UI Button Group offers categorized button group which allow to group 2 min read Semantic-UI Button ContentSemantic UI is a modern framework used in developing seamless designs for the website, It gives the user a lightweight experience with its components. It uses predefined CSS and jQuery to incorporate different frameworks. Semantic UI Button Content offers conditions between buttons like delete or Sa 2 min read Semantic-UI Button StatesSemantic UI is a modern framework used in developing seamless designs for the website, It gives the user a lightweight experience with its components. It uses the predefined CSS and jQuery to incorporate in different frameworks. Semantic UI Button Group offers status of the button, if you want to cr 1 min read Semantic-UI Button VariationsSemantic UI is a modern framework used in developing seamless designs for the website, It gives the user a lightweight experience with its components. It uses the predefined CSS and jQuery to incorporate in different frameworks. Semantic UI Button Group offers variation of button, there are Social b 4 min read Semantic-UI Button Group VariationsSemantic UI is a modern framework used in developing seamless designs for the website, It gives the user a lightweight experience with its components. It uses predefined CSS and jQuery to incorporate different frameworks. Semantic UI Button Group also offers a group variation of buttons, there are I 3 min read Semantic-UI | Container Semantic UI open-source framework provides a container which helps to limit content up to greatest width. The framework uses jQuery and CSS to create interactive user interfaces. It is very much similar to bootstrap usage and has different elements for creating page structure of any website. Example 4 min read Semantic-UI DividerSemantic-UI | DividerSemantic UI is an open-source framework available for building nice and flexible user interfaces using CSS and jQuery. It is very much similar to bootstrap having different elements for website creation. It majorly uses classes to add styles to different elements of HTML. Divider helps in visually d 2 min read Semantic-UI Divider TypesSemantic UI is a free open-source front-end development framework that is equipped with pre-built semantic components that helps create responsive layouts using user-friendly HTML. In terms of user-friendliness, Semantic UI is better than Bootstrap styling. Top companies like Snapchat, Accenture hav 4 min read Semantic-UI Divider VariationsSemantic UI is a free open-source front-end development framework that is equipped with pre-built semantic components that helps create responsive layouts using user-friendly HTML. It uses predefined CSS and jQuery to incorporate different frameworks. A divider is generally used to divide the conten 3 min read Semantic-UI | Flag Semantic UI open-source framework provides classes that are used to show flags of different countries. The framework is very much similar to bootstrap usage and has many elements for creating amazing interactive interfaces for websites. Classes are added to elements for adding styles. Example: The f 5 min read Semantic-UI HeaderSemantic-UI | HeaderSemantic UI is an open-source framework that uses CSS and jQuery to build great user interfaces. It is same as a bootstrap for use and has great different elements to use to make your website look more amazing. It uses a class to add CSS to the elements. Semantic-UI has really cool headers they can 3 min read Semantic-UI Header TypesSemantic 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. It uses a class to add CSS to the elements. Semantic-UI has really cool headers that 3 min read Semantic-UI Header ContentSemantic 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 header provides a short summary of content and it's can contain 3 content 2 min read Semantic-UI Header StatesSemantic UI offers many components for users to design their interface. The Header component offers us different types of headers, different types of content holding headers, states of header in different variations. In this article, we will learn about the Semantic UI Header States. These states ar 1 min read Semantic-UI Header VariationsSemantic UI offers many components for users to design their interface. It offers us different types of headers, different types of content holding headers, states of header in different variations. In this article, we will learn about the Semantic UI Header Variations. Header variations have many v 3 min read Semantic-UI | Icon Semantic UI open-source framework gives icons or glyphs that are used to show pictures related to some elements using CSS and jQuery that is used to create great user interfaces. It is very much similar to bootstrap usage to make the website more amazing. It uses classes to add styles to the HTML el 3 min read Semantic-UI Icon Set 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 and responsive. An icon is a glyph used to represent something else. Semantic UI provi 3 min read Semantic-UI ImageSemantic-UI | ImagesSemantic 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. It uses a class to add CSS to the elements.There are different styles of putting imag 2 min read Semantic-UI Image TypesSemantic 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 various different elements to use to make your website look more amazing. Semantic UI provides us with a very easy way to style images. It offers images of d 3 min read Semantic-UI Image StatesSemantic-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 various different elements to use to make your website look more amazing. Semantic-UI provides us with a very easy way to style images instead of using long 2 min read Semantic-UI Image VariationsSemantic 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 âimag 4 min read Semantic-UI Image GroupsSemantic 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 provides us with a very easy way to style images. It offers images in dif 2 min read Like