HTML

HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes

FAQs

HTML readonly Attribute

HTML readonly Attribute

 

 

The readonly attribute is a boolean attribute. It specifies that an input field or textarea is read-only when readonly attribute is present. We cannot modify a readonly field. It kept the user away from changing the value.

 

Used With:-

 

Elements Attribute
input readonly
textarea readonly

 

Syntax:-

 

Its syntax is:- < element readonly >

Code Explanation

All Tutorials related to HTML Attributes

All Sections related to HTML