VOOZH about

URL: https://www.geeksforgeeks.org/css/semantic-ui-form-read-only-field-state/

⇱ Semantic-UI Form Read-Only Field State - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Semantic-UI Form Read-Only Field State

Last Updated : 10 Mar, 2022

Semantic UI is an open-source framework that uses CSS and jQuery to build great user interfaces. It is 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 attractive form using semantic-ui classes. It is very easy to design attractive form.

The Semantic-UI Form Read-Only Field State is used to make the individual input fields read-only. If an input field is readonly, then its content cannot be changed but can be copied and highlighted.

Semantic-UI Form Read-Only Field State Used Attribute:

  • readonly: This attribute is used to make the form input fields readonly.

Syntax:

<div class="ui form">
 ...
 <input placeholder="Read Only" readonly="" type="text">
 ...
</div>

Example 1: In this example, we will describe the use of Semantic-UI Form Read-Only Field State.

Output:

👁 Image

Example 2: In this example, we will describe the use of Semantic-UI Form Read-Only Field State.

Output:

👁 Image

Reference: https://semantic-ui.com/collections/form.html#read-only-field

Comment