Open In App

Semantic-UI List Link Type

Last Updated : 23 Feb, 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 looks more amazing. It uses a class to add CSS to the elements.

Semantic UI List Link Type is used to create a navigation list in a specified format. It is used to navigate to a particular page.

Semantic UI List Link Type Class:

  • link: This class is used to create a list of link types.

Syntax:

<div class="ui link list">
    <a class="item"> .... </a>
    ...
</div>

Example 1: In this example, we are creating a list of items of link type.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>
        Semantic-UI List Link Type
    </title>
  
    <link rel="stylesheet" href=
</head>
  
<body>
    <div class="ui container">
        <h2 style="color:green">
            GeeksforGeeks
        </h2>
  
        <h3>Semantic-UI List Link Type</h3>
  
        <div class="ui link list">
            <div class="active item">GeeksforGeeks</div>
            <a class="item">Data Structure</a>
            <a class="item">Algorithm</a>
            <a class="item">Interview Preparation</a>
            <a class="item">Competitive Programming</a>
            <a class="item">Machine Learning</a>
            <a class="item">Web Development</a>
        </div>
    </div>
</body>
  
</html>


Output:

Example 2: In this example, we are creating horizontal list items of link type.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>
        Semantic-UI List Link Type
    </title>
  
    <link rel="stylesheet" href=
</head>
  
<body>
    <div class="ui container">
        <h2 style="color:green">
            GeeksforGeeks
        </h2>
  
        <h3>Semantic-UI List Link Type</h3>
  
        <div class="ui link horizontal list">
            <div class="active item">GeeksforGeeks</div>
            <a class="item">Data Structure</a>
            <a class="item">Algorithm</a>
            <a class="item">Interview Preparation</a>
            <a class="item">Competitive Programming</a>
            <a class="item">Machine Learning</a>
            <a class="item">Web Development</a>
        </div>
    </div>
</body>
  
</html>


Output:

Reference link: https://semantic-ui.com/elements/list.html#link



Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads