Open In App

Semantic-UI Menu Types

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. The best part about this framework is that it creates beautiful and responsive layouts as it contains pre-built semantic components.

A Menu is a component that displays a group of items that serve as navigation between one section of the website to another. It is an essential component and is always present in any website in order to make the navigation easy for the user. By default, the Menu is horizontal and displays the items inside it in a horizontal manner i.e. next to each other. There are various Menu Types in Semantic UI. In this article, we will know all about them briefly.



Semantic UI Menu Types:

Syntax:



<div class="MenuType">
    Content
</div>

Example 1: This example describes the Semantic-UI Menu Types by creating the pointing type with displaying the element.




<html>
  
<head>
    <link rel="stylesheet" href=
</head>
  
<body style="margin-inline: 10rem;">
    <center>
        <h1 class="ui header green">
            GeeksforGeeks
        </h1>
        <h3>
            Semantic UI Menu Type
        </h3>
        <div class="ui pointing menu">
            <a class="item"
                <i class="book icon"></i
                Tutorials 
            </a>
            <a class="active item"
                <i class="tasks icon"></i>
               Jobs 
            </a>
            <a class="item"
                <i class="certificate icon"></i
                Certificate 
            </a>
            <a class="item"
                <i class="file alternate outline icon"></i>
                    Courses 
            </a>
            <div class="right menu">
                <div class="item">
                    <div class="ui transparent icon input">
                        <input type="text" 
                               placeholder="type here....">
                            <i class="search link icon"></i
                    </div>
                </div>
            </div>
        </div>
    </center>
</body>
</html>

Output:

Semantic-UI Menu Types

Example 2: This example describes the uses of Semantic-UI Menu Tabular Type with more tabs.




<!DOCTYPE html>
<html>
  
<head>
<title>Semantic-UI Menu Tabular Type</title>
    <link rel="stylesheet"
        href=
</head>
  
<body>
    <div class="ui container center aligned">
        <h2 style="color:green">
            GeeksforGeeks
        </h2>
  
        <h3>Semantic-UI Menu Tabular Type</h3>
  
        <div class="ui tabular menu">
        <a class="item active">
            GFG1
        </a>
        <a class="item">
            GFG2
        </a>
        <a class="item">
            GFG3
        </a>
        <a class="item">
            GFG4
        </a>
  
        <div class="right menu">
            <div class="item">
                <div class="ui transparent icon input">
                <input type="text"
                        placeholder="Search here">
                <i class="search icon"></i>
                </div>
            </div>
            </div>
        </div>
    </div>
</body>
      
</html>

Output:

Semantic-UI Menu Tabular Type

Example 3: The below example demonstrates the use of Semantic UI Menu Pagination Type.




<html>
  
<head>
    <link rel="stylesheet" href=
</head>
  
<body>
    <center>
        <h1 class="ui header green">
            GeeksforGeeks
        </h1>
        <h3>
            Semantic UI Menu Type
        </h3>
        <div class="ui pagination menu"
            <a class="item" href="#">Prev</a
            <a class="active item">    a</a
            <a class="item">b</a
            <a class="item">c</a>
            <div class="disabled item"> ...... </div>
                <a class="item">y</a>
                <a class="item">z</a
                <a class="item" href="#">Next</a>
            </div>
    </center>
</body>
</html>

Output:

Semantic UI Menu Pagination Type.

Reference: https://semantic-ui.com/collections/menu.html#menu


Article Tags :