HTML CSS Reference/HTML Attributes Reference/readonly
"readonly" Example
<source lang="html4strict">
<HTML> <head><Title>Example For readonly</Title></head> <BODY> <input type="text" name="tfd" value="This text field is not editable" readonly size="30"> </BODY> </HTML>
</source>
readonly is applied to
<source lang="html4strict">
+----------------+--------------------------------------------------------------+ | Applied_To |<input type="password"> <input type="text"> | | |<textarea> | +----------------+--------------------------------------------------------------+
</source>
"readonly" Syntax and Note
<source lang="html4strict">
Note:
Whether the content of an element is read-only or not.
Syntax:
<element readonly> . . . </element>
</source>