HTML CSS Reference/HTML Attributes Reference/readonly

Материал из Web эксперт
Перейти к: навигация, поиск

"readonly" Example

    
<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>



readonly is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<input type="password">         <input type="text">           |
|                |<textarea>                                                    |
+----------------+--------------------------------------------------------------+



"readonly" Syntax and Note

Note:
    
Whether the content of an element is read-only or not.
    
Syntax:
    
<element readonly> . . . </element>