Semantic UI

  • Last Updated : 27 Sep, 2023

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

Semantic UI

Why Semantic UI?

Semantic UI is becoming extremely popular due to the following reasons:

  • It offers a variety of components that can be used easily.
  • It is open source so has good community support.
  • It is easy to use and learn.
  • It provides an elegant look and makes UI more interactive with minimal effort.
  • It unpacks a variety of themes and CSS, JavaScript, and font files.
  • It provides a lightweight user experience.
Semantic UI

Semantic UI

Installing Semantic UI: We can use Semantic UI in the following two ways.

Method 1: Using CDN Link: In this method, we will add CDN links to the head section of the code without installing it.

<link href=”” rel=”stylesheet” />
<script src=””></script>

Method 2: The second way of using is the downloading min.css file of the Semantic UI whose link you can find on the semantic UI official site and use it directly and it works offline.

Now let’s understand the working of Semantic UI using an example.

Example: This example creates a simple Log In Form.


<!DOCTYPE html>

    <title>Semantic UI</title>
    <link href=
        rel="stylesheet" />

    <script src=

    <script src=""

    <div class="ui container">
        <h2>Log In</h2>
        <form class="ui form">
            <div class="field">
                <input type="text" name="Username"
            <div class="field">
                <input type="password" name="password"
            <div class="field">
                <div class="ui checkbox">
                    <input type="checkbox" tabindex="0"
                    <label>Remember Me</label>
            <button class="ui button" type="submit">
                Log In





Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above