HTML CSS Reference/HTML Attributes Reference/readonly

Материал из Web эксперт
Версия от 11:20, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

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