Open In App

Semantic-UI Secondary Menu Type

Last Updated : 09 Mar, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

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



Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads