keygen

The keygen element represents a control for generating a public-private key pair and for submitting the public key from that key pair.

HTML5

Attributes

<keygen attribute-name="attribute-value">
Name Value Description
autofocus autofocus | empty Specifies that the element represents a control to which a UA is meant to give focus as soon as the document is loaded - HTML5
challenge string Challenge string that is submitted along with the public key
disabled disabled | empty Specifies that the element represents a disabled control
form IDREF Identifies a form with which to associate the element - HTML5
keytype rsa Type of key generated
name string Name part of the name/value pair associated with this element for the purposes of form submission

Global

Example | autofocus

Example | challenge

Example | disabled

Example | form

Example | keytype

Example | name

External

W3C HTML5

W3C HTML 5.1