HTML <keygen> Tag
This tag is deprecated in HTML5
Description
The <keygen> HTML element 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.
Properties
- Permitted Parents
- Any element that accepts phrasing content
- Content
- None. It is an empty element.
- Start/End Tags
- Start tag: required, End tag: forbidden
Example
Attributes
| Attribute | Definition |
|---|---|
| autofocus | Specifies that a [keygen] element should automatically get focus when the page loads |
| challenge | Specifies whether or not the value of the keygen is be challenged when submitted |
| disabled | Disables the control. The control won't accept changes from the user. It also cannot receive focus and will be skipped when tabbing |
| form | Specifies the ID of a form to which this control belongs |
| keytype | Specifies a key type. For example, the value "RSA" specifies an RSA key |
| name | Assigns a name to the input control |
Global Attributes
The <keygen> tag also supports the Global Attributes in HTML5
Event Attributes
The <keygen> tag also supports the Event Attributes in HTML5
Browser Support
The following information will show you the current browser support for the HTML <keygen> tag. Hover over a browser icon to see the version that first introduced support for this HTML tag.
Browser support for this tag is currently unknown.
Desktop
Tablets & Mobile
-
Last updated by CSSPortal on: 6th December 2019
Sponsors
Copy Paste List
Copy and paste or download lists in your preferred format, including plain text, PDF, or HTML.
Unicode Characters & Emojis
Search all Unicode characters and emojis plus other tools.
Check Shortened URLs
Expand shortened URLs to view the destination link.
Advertise Here
Advertise your company and products here!
