Tag Description
The keygen tag is used for generating a key pair. When the control's form is submitted, the private key is stored in the local keystore, and the public key is packaged and sent to the server.
This tag has the form:
<keygen name="name"
challenge="string"
keytype="type"
keyparams="pqg-params" />
HTML5 and HTML4.01 Differences
This tag is new for HTML5.
Attributes
Attribute | Value | Description |
---|---|---|
autofocus | autofocus | Makes the input field focused on page load |
challenge | string | Specifies the value of the keygen is set to be challenged when submitted |
disabled | disabled | Specifies that the input field should be disabled |
form | form_id | Defines one ore more forms the object belongs to |
keytype | rsa | Specifies the keytype. Valid values include: rsa - generates an RSA key |
name | name | Specifies a unique name for the input field |
Global Attributes
This tag also supports the HTML Global Attributes.
Event Attributes
This tag also supports the HTML Event Attributes.
Browser Support
Chrome | Firefox | IE | Safari | Opera |
---|---|---|---|---|
1.0 | 1.0 | 1.2 | 3.0 |
Doctype Declaration Support
The following table lists the doctype declarations this element may appear in:
HTML4.01 / XHTML1.0 | XHTML 1.1 | HTML 5 | ||
---|---|---|---|---|
Traditional | Strict | Frameset | ||
Miscellaneous Information
Defined In: | HTML5 |
---|---|
Empty Tag: | Yes |