Easy Tutorial
❮ Av Event Ended Canvas Font ❯

HTML <keygen> disabled Attribute

HTML <keygen> Tag

Example

A disabled <keygen> element:


Browser Support

Firefox, Opera, Chrome, and Safari 6 support the disabled attribute of the <keygen> tag.


Definition and Usage

The disabled attribute is a boolean attribute.

The disabled attribute specifies that the <keygen> element should be disabled. Disabled fields are unusable and uneditable.

The disabled attribute can be set to prevent users from using the field until some condition is met (like selecting a checkbox, etc.). Then, a JavaScript can remove the disabled value, making the field enabled.


Differences Between HTML 4.01 and HTML5

The <keygen> tag is new in HTML5.


Differences Between HTML and XHTML

In XHTML, attribute minimization is forbidden, and the disabled attribute must be defined as <keygen disabled="disabled" />.


Syntax

❮ Av Event Ended Canvas Font ❯