HTML CSS Reference/HTML Attributes Reference/disabled

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

"disabled" Example

   <source lang="html4strict">
   

<HTML> <head><Title>Example For disabled</Title></head> <BODY> <form>

  <input type="button" value="This button is enabled">
  <input disabled=true type="button" value="This button is disabled">

</form> </BODY> </HTML>


     </source>
   
  


disabled is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <acronym> | | |<address> | | | |

| |
<body> |

| |<button> |

| |
|

| | <custom> | | |

| | | <dir> |

| |
|

| |

| | |<fieldset> | | |<form> <hn> | | | <input type="button"> | | |<input type="checkbox"> <input type="file"> | | |<input type="image"> <inputtype="password"> | | |<input type="radio"> <input type="reset"> | | |<inputtype="submit"> <input type="text"> | | | <isindex> | | | <label> |

| |<legend>
  • | | |<listing> <marquee> | | |<menu> <nobr> | | |
      <optgroup> | | |<option>

      | | |

                                                            |
      |                |                                                    |
      |                |                                                     |
      |                |<select>                                               |
      |                |                                              |
      |                |                                                    |
      |                |<textarea>                                                |
      |                |                             
        | | | <xmp> | +----------------+--------------------------------------------------------------+ </source>

        "disabled" Syntax and Note

        <source lang="html4strict"> Note:

        This attribute sets the enabled state of an element. disabled is a Boolean attribute, Possible values are false and true. false is the default value.

        Syntax:

        <element disabled="value" > . . . </element>


        </source>