Skip to content
Related Articles

Related Articles

Semantic-UI Message Visible State

Improve Article
Save Article
  • Last Updated : 09 Mar, 2022
Improve Article
Save Article

Semantic UI is a modern framework used in developing seamless designs for the website, It gives the user a lightweight experience with its components. It uses predefined CSS and jQuery to incorporate different frameworks.

Semantic UI Message offers users 2 states of messages which are visible and hidden. In this article, we will see about the visible state. Semantic UI Message Visible state is used to display the message to the audience, this is also the default state of the message component.

Semantic UI Message Visible State Class:

  • visible: This class is used to make the message visible.

Syntax:

<div class="ui visible message">
      ...
</div>

The below example illustrates the Semantic UI Message Visible State.

Example 1: In this example, we will see the visible message.

HTML




<!DOCTYPE html>
<html>
<head>
    <link href=
        rel="stylesheet" />
</head>
<body>
    <center>
        <h1 class="ui header green">
            GeeksforGeeks
        </h1>
        <strong>Semantic UI Message Visible State</strong>
    </center>
    <strong>Message Visible State:</strong>
    <div class="ui visible message">
        <p>A Computer Science Portal for Geeks</p>
    </div>
</body>
</html>


Output:

Semantic UI Message Visible State

Semantic UI Message Visible State

Example 2: In this example, we will show the visible as well as the hidden message.

HTML




<!DOCTYPE html>
<html>
<head>
    <link href=
        rel="stylesheet" />
</head>
<body>
    <center>
        <h1 class="ui header green">
            GeeksforGeeks
        </h1>
        <strong>Semantic UI Message Visible State</strong>
    </center>
    <strong>Message Visible State:</strong>
    <div class="ui visible message">
        <p>A Computer Science Portal for Geeks</p>
    </div>
    <strong>Message Hidden State:</strong>
    <div class="ui hidden message">
        <p>A Computer Science Portal for Geeks</p>
    </div>
</body>
</html>


Output:

Semantic UI Message Visible State

Semantic UI Message Visible State

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


My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!