Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML keygen disabled Attribute

HTML disabled attribute

HTML keygen Tag Reference HTML tag

Example

A disabled element:

  Username:

  Encryption:

 

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Supported by Firefox, Opera, Chrome, and Safari 6 The disabled attribute of the tag.


Definition and Usage

The disabled attribute is a boolean attribute.

The disabled attribute specifies that the element should be disabled. A disabled field is unusable and uneditable.

The disabled attribute can be set so that the user can only use the field after certain conditions are met (such as selecting a checkbox, etc.). JavaScript can then be used to remove the disabled value and make the field usable again.


Differences between HTML 4.01 and HTML5

The tag is new in HTML5.


Differences between HTML and XHTML

In XHTML, attribute minimization is forbidden; the disabled attribute must be defined as .


Syntax


HTML keygen Tag Reference HTML tag