Semantic-UI Form Success State Last Updated : 03 Mar, 2022 Comments Improve Suggest changes Like Article Like 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 look more amazing. It uses a class to add CSS to the elements. A form is the section of a document that contains a number of input fields such as text field, password, checkbox, etc. Semantic-UI form is used to create an attractive form using semantic-ui classes. It is very easy to design attractive forms. Semantic-UI Form Success State is used to create a form and display the success state indicator. Semantic-UI Form Success State Used Class: success: This class is used to represent the success indicator on the form element. Syntax: <div class="ui success form"> ... <div class="ui error message"> ... </div> </div> Example 1: In this example, we will describe the Semantic-UI Form Success State. HTML <!DOCTYPE html> <html> <head> <title> Semantic-UI Form Success State </title> <link rel="stylesheet" href= "https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css" /> </head> <body> <div class="ui container center aligned"> <h2 style="color:green"> GeeksforGeeks </h2> <h3>Semantic-UI Form Success State</h3> </div> <form class="ui container success form"> <div class="field"> <label>Username</label> <input type="text" name="username" placeholder="Enter Username"> </div> <div class="field"> <label>Password</label> <input type="password" name="pwd" placeholder="Enter Password"> </div> <div class="ui success message"> <div class="header">Form Completed</div> <p>Welcome to our portal.</p> </div> <button class="ui button right" type="submit"> Submit </button> </form> </body> </html> Output: Example 2: In this example, we will describe the Semantic-UI Form Success State. HTML <!DOCTYPE html> <html> <head> <title> Semantic-UI Form Success State </title> <link href= "https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css" rel="stylesheet" /> <script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"> </script> <script src= "https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js"> </script> </head> <body> <div class="ui container center aligned"> <h2 style="color:green"> GeeksforGeeks </h2> <h3>Semantic-UI Form Success State</h3> </div> <form class="ui container form success"> <div class="field"> <div class="three fields"> <div class="field"> <label>First Name</label> <input type="text" name="fname" placeholder="Enter First Name"> </div> <div class="field"> <label>Second Name</label> <input type="text" name="sname" placeholder="Enter Second Name"> </div> <div class="field"> <label>Last Name</label> <input type="text" name="lname" placeholder="Enter Last Name"> </div> </div> <div class="two fields"> <div class="field"> <label>Email Id</label> <input type="email" name="email" placeholder="Enter Email Id"> </div> <div class="field"> <label>Mobile No</label> <input type="number" name="number" placeholder="Enter Mobile No"> </div> </div> <div class="field"> <label>Short Notes</label> <textarea></textarea> </div> <div class="inline fields"> <label for="gender">Male/Female:</label> <div class="field"> <div class="ui radio checkbox"> <input type="radio" name="gender" tabindex="0" class="hidden"> <label>Male</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input type="radio" name="gender" tabindex="0" class="hidden"> <label>Female</label> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input type="radio" name="gender" tabindex="0" class="hidden"> <label>Other</label> </div> </div> </div> <div class="ui success message"> <div class="header">Form Completed</div> <p>You're all signed up for the newsletter.</p> </div> <button class="ui button right" type="submit"> Submit </button> </div> </form> <script> $('.ui.radio.checkbox').checkbox(); </script> </body> </html> Output: Reference: https://semantic-ui.com/collections/form.html#success Comment More infoAdvertise with us Next Article Semantic-UI Form Success State A ashokjaiswal Follow Improve Article Tags : Web Technologies CSS Geeks Premier League Geeks-Premier-League-2022 Semantic-UI Semantic-UI Collections +1 More Similar Reads Semantic-UI Progress Success State 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 boots 2 min read Semantic-UI Form States 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 make your website look more amazing. It uses a class to add CSS to the elements. Forms provide us with a way to take input from t 5 min read Semantic-UI Form Warning State 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 look more amazing. It uses a class to add CSS to the elements. A form is the section of a document that 3 min read Semantic-UI Form Types Semantic UI is the open-source framework that used CSS and jQuery to make our websites look beautiful and responsive. It has predefined classes like bootstrap for use to make our website more interactive. It has some pre-built semantic components and we can use these components to create a responsiv 2 min read Semantic-UI Form Error State 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 look more amazing. It uses a class to add CSS to the elements. A form is the section of a document that 3 min read Semantic-UI Loader States 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 interactive interfaces. It can also be directly used via CDN li 2 min read Semantic-UI Step States 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 look more amazing. It consists of pre-built semantic components with the help of which one can create be 3 min read Semantic-UI Table Error State 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 look more amazing. It uses a class to add CSS to the elements. Tables are an easy way to organize a lot 3 min read Semantic-UI Progress States Semantic UI is an open-source UI framework that uses CSS and jQuery to build great web experiences. It is also compatible with other CSS frameworks like Bootstrap. A Progress module is used to show the progress of a task to the user. In this article, we will be seeing the different states of the pro 3 min read Semantic-UI Step Completed State 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 look more amazing. Semantic UI Step States offers us different states like active, completed, and disabl 2 min read Like