Semantic-UI Secondary Menu Type
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 Menu is used to display the grouped navigation menu. A navigation menu is used in every website to make it more user-friendly so that the navigation through the website becomes easy and the user can directly search for the topic of their interest.
Semantic-UI Secondary Menu Type: It is used to create the secondary menu that can adjust its appearance to de-emphasize its contents. To create the secondary menu type, we will use the secondary class. We will use the anchor element to create the secondary menu list items.
Used Class:
- secondary: This class is used to create the secondary menu that can adjust its appearance to de-emphasize its contents.
Syntax:
<div class="ui secondary menu"> ... </div>
Example 1: This example describes the use of Semantic-UI Secondary Menu Type. Here we are creating a horizontal secondary menu with link items.
HTML
<!DOCTYPE html> < html > < head > < title > Semantic-UI Secondary Menu Type </ title > < link rel = "stylesheet" href = </ head > < body > < div class = "ui container" > < h2 style = "color:green" > GeeksforGeeks </ h2 > < h3 >Semantic-UI Secondary Menu Type</ h3 > < div class = "ui secondary menu" > < a href = "#" class = "item active" > GeeksforGeeks </ a > < a href = "#" class = "item" > HTML </ a > < a href = "#" class = "item" > CSS </ a > < a href = "#" class = "item" > JavaScript </ a > < a class = "item" > Bootstrap </ a > < a class = "item" > React.js </ a > < a class = "item" > Node.js </ a > </ div > </ div > </ body > </ html > |
Output:
Example 2: This example describes the use of Semantic-UI Secondary Menu Type. Here we are creating a horizontal secondary menu with link items.
HTML
<!DOCTYPE html> < html > < head > < title > Semantic-UI Secondary Menu Type </ title > < link rel = "stylesheet" href = </ head > < body > < div class = "ui container" > < h2 style = "color:green" > GeeksforGeeks </ h2 > < h3 >Semantic-UI Secondary Menu Type</ h3 > < div class = "ui vertical secondary menu" > < a href = "#" class = "item active" > GeeksforGeeks </ a > < a href = "#" class = "item" > HTML </ a > < a href = "#" class = "item" > CSS </ a > < a href = "#" class = "item" > JavaScript </ a > < a class = "item" > Bootstrap </ a > < a class = "item" > React.js </ a > < a class = "item" > Node.js </ a > </ div > </ div > </ body > </ html > |
Output:
Reference: https://semantic-ui.com/collections/menu.html#secondary-menu
Please Login to comment...