Onsen UI CSS Component Basic Segment Last Updated : 22 Jun, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report Onsen UI CSS is used to create beautiful HTML components. It is one of the most efficient ways to create HTML5 hybrid components that are compatible with both mobile and desktop. The segment is used to create a group of related content. Onsen UI CSS Component Basic Segment is used to create the basic segment with related content using the Onsen UI Segment classes. Onsen UI CSS Component Basic Segment Classes: segment: This class is used to create the segment.segment__item: This class is used to create the segment item.segment__input: This class is used to create the segment input.segment__button: This class is used to create the segment buttons. Syntax: <div class="segment"> <div class="segment__item"> <input type="..." class="segment__input"> <div class="segment__button"> .... </div> </div> ... </div> Example 1: The following example demonstrates the Onsen UI CSS Component Basic Segment. HTML <!DOCTYPE html> <html> <head> <!-- CDN links of Onsen UI library --> <link rel="stylesheet" href= "https://unpkg.com/onsenui/css/onsenui.css"> <link rel="stylesheet" href= "https://unpkg.com/onsenui/css/onsen-css-components.min.css"> <script src= "https://unpkg.com/onsenui/js/onsenui.min.js"> </script> </head> <body> <center> <h2 style="color: green;"> GeeksforGeeks </h2> <strong> Onsen UI CSS Component Basic Segment </strong> <br> <br> <div class="segment" style="width: 120px;"> <div class="segment__item"> <input type="checkbox" class="segment__input" checked> <div class="segment__button"> Java </div> </div> <div class="segment__item"> <input type="checkbox" class="segment__input"> <div class="segment__button"> Python </div> </div> </div> </center> </body> </html> Output: Example 2: The following example demonstrates the Onsen UI CSS Component Basic Segment. HTML <!DOCTYPE html> <html> <head> <!-- CDN links of Onsen UI library --> <link rel="stylesheet" href= "https://unpkg.com/onsenui/css/onsenui.css"> <link rel="stylesheet" href= "https://unpkg.com/onsenui/css/onsen-css-components.min.css"> <script src= "https://unpkg.com/onsenui/js/onsenui.min.js"> </script> </head> <body> <center> <h2 style="color: green;"> GeeksforGeeks </h2> <strong> Onsen UI CSS Component Basic Segment </strong> <br> <br> <div class="button-bar" style="width: 400px;"> <div class="button-bar__item"> <button class="button-bar__button"> Java </button> </div> <div class="button-bar__item"> <button class="button-bar__button"> Python </button> </div> <div class="button-bar__item"> <button class="button-bar__button"> C++ </button> </div> </div> </center> </body> </html> Output: Reference: https://onsen.io/v2/api/css.html#segment-category Comment More infoAdvertise with us Next Article Onsen UI CSS Component Basic Segment G gopaldhangar Follow Improve Article Tags : Web Technologies CSS Onsen-UI Onsen-UI CSS-Components Similar Reads Onsen UI Segment CSS Components Onsen UI CSS is used to create beautiful HTML components. It is one of the most efficient ways to create HTML5 hybrid components that are compatible with both mobile and desktop. The segment is used to create a group of related content. Onsen UI CSS Segment is used to create the segment using the be 2 min read Onsen UI CSS Component Segment Button Bar Onsen UI CSS is used to create beautiful HTML components. It is one of the most efficient ways to create HTML5 hybrid components that are compatible with both mobile and desktop. The segment is used to create a group of related content. Onsen UI CSS Component Segment Button Bar is used to create the 2 min read Onsen UI Action Sheet CSS Components Onsen UI CSS is used to create beautiful HTML components. It is one of the most efficient ways to create HTML5 hybrid components that are compatible with both mobile and desktop. In this article, we will learn about the Onsen UI action sheet CSS components, its classes, and some action sheet impleme 3 min read Onsen UI CSS Component Material Segment Onsen UI CSS is used to create beautiful HTML components. It is one of the most efficient ways to create HTML5 hybrid components that are compatible with both mobile and desktop. The segment is used to create a group of related content. Onsen UI CSS Component Material Segment is used to create the m 2 min read Onsen UI CSS Component Basic Button Onsen UI CSS is used to create beautiful HTML components. It is one of the most efficient ways to create HTML5 hybrid components that are compatible with both mobile and desktop. Buttons are one of the most common UI elements. When we want to perform some action and want to navigate to a different p 2 min read Like