Open In App

Semantic-UI Icon Set Code

Semantic UI is an open-source development framework that provides pre-defined classes to make our website look beautiful, amazing, and responsive. It is similar to Bootstrap which has predefined classes. It uses jQuery and CSS to create the interfaces. It can also be directly used via CDN like bootstrap.

Semantic UI provides the users with various different icons that can be used for different purposes with a beautiful user interface. The icons add more beauty to the website than the textual representation. In this article let us see about the Icon set of code. Semantic UI provides some most commonly used icon classes for design which were mostly used in the editors and here are the classes.



An icon is a glyph used to represent something else and it can represent programming and programming tools.

Semantic-UI Icon Set Code Classes:



Syntax:

<i class="Set-Code-classes icon"></i> 

Example 1: This code demonstrates all code icon set classes.




<!DOCTYPE html>
<html>
  
<head>
  <title>Semantic-UI Icon Set Code</title>
  <link href=
        rel="stylesheet"/>
  
  <script src=
          integrity=
"sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
          crossorigin="anonymous">
  </script>
  <script src=
  </script>
</head>
  
<body>
  <center>
    <h1 class="ui green header">GeeksforGeeks</h1>
    <strong>
      Semantic-UI Icon Set code
    </strong>
    <br/>
    <br/>
  
    <div class=" ui container">
      <div class="ui grid">
        <div class="three wide column">
            <i class="archive icon"></i>
        </div>
  
        <div class="three wide column">
            <i class="barcode icon"></i>
        </div>
  
        <div class="three wide column">
            <i class="bath icon"></i>
        </div>
  
        <div class="three wide column">
            <i class="bug icon"></i>
        </div>
  
        <div class="three wide column">
            <i class="code icon"></i>
        </div>
  
        <div class="three wide column">
            <i class="code branch icon"></i>
        </div>
  
        <div class="three wide column">
             <i class="coffee icon"></i>
        </div>
  
        <div class="three wide column">
            <i class="file icon"></i>
        </div>
  
        <div class="three wide column">
             <i class="file outline icon"></i>
        </div>
  
        <div class="three wide column">
            <i class="file alternate icon"></i>
        </div>
  
        <div class="three wide column">
             <i class="file alternate outline icon"></i>
        </div>
  
        <div class="three wide column">
            <i class="file code icon"></i>
        </div>
  
        <div class="three wide column">
            <i class="file code outline icon"></i>
        </div>
  
        <div class="three wide column">
             <i class="filter icon"></i>
        </div>
  
        <div class="three wide column">
             <i class="fire extinguisher icon"></i>
        </div>
      </div>
    </div>
  </center>
</body>
  
</html>

Output:

Semantic-UI Icon Set Code

Example 2: This code demonstrates all code icon set classes.




<!DOCTYPE html>
<html>
  
<head>
  <link href=
        rel="stylesheet"/>
  
  <script src=
          integrity=
"sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
          crossorigin="anonymous">
  </script>
  
  <script src=
  </script>
</head>
  
<body>
  <center>
    <h1 class="ui green header">Geeksforgeeks</h1>
    <strong>Semantic UI Icon Set Code</strong>
    <br/>
    <br/>
  
    <div class="ui container">
      <button class="ui button">
          <i class="folder outline icon"></i>
      </button>
  
      <button class="ui button">
           <i class="folder open icon"></i>
      </button>
  
      <button class="ui button">
          <i class="folder open outline icon"></i>
      </button>
  
      <button class="ui button">
           <i class="keyboard icon"></i>
      </button>
    </div>
  </center>
</body>
  
</html>

Output:

Semantic-UI Icon Set Code

Reference: https://semantic-ui.com/elements/icon.html#code


Article Tags :