Open In App

Semantic-UI Label Image Type

Improve
Improve
Like Article
Like
Save
Share
Report

Semantic UI is a framework that is used to build a great user interface. It is an open-source framework that uses CSS and jQuery. It is the same as a bootstrap for use and has great different elements to use to make your website look more amazing.

A Semantic UI label is used to create meaningful content classifications. In this article, we will learn to use the Semantic-UI Label Image Type of the Semantic UI framework. The Semantic-UI Label Image Type is used to add labels that can be formatted to emphasize an image.

Semantic-UI Label Image Type Class:

  • image: This class is used to add images to the label element.

Example 1: This example describes the uses of Semantic-UI Label Image Type.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>
        Semantic-UI Label Image Type
    </title>
  
    <link rel="stylesheet" href=
</head>
  
<body>
    <div class="ui container">
        <h2 style="color:green">
            GeeksforGeeks
        </h2>
  
        <h3>Semantic-UI Label Image Type</h3>
  
        <div class="ui image label">
            <img src=
            GeeksforGeeks
        </div>
        <div class="ui image label">
            <img src=
            HTML
        </div>
        <div class="ui image label">
            <img src=
            CSS
        </div>
        <div class="ui image label">
            <img src=
            Bootstrap
        </div>
    </div>
</body>
  
</html>


Output:

Example 2: This example describes the uses of Semantic-UI Label Image Type with size variations.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>
        Semantic-UI Label Image Type
    </title>
  
    <link rel="stylesheet" href=
</head>
  
<body>
    <div class="ui container">
        <h2 style="color:green">
            GeeksforGeeks
        </h2>
  
        <h3>Semantic-UI Label Image Type</h3>
  
        <div class="ui image small label">
            <img src=
            GeeksforGeeks
        </div>
        <div class="ui image label">
            <img src=
            HTML
        </div>
        <div class="ui image large label">
            <img src=
            CSS
        </div>
        <div class="ui image big label">
            <img src=
            Bootstrap
        </div>
    </div>
</body>
  
</html>


Output:

Reference: https://semantic-ui.com/elements/label.html#image



Last Updated : 01 Mar, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads