HTML5 <keygen> Tag


Definition and Usage

The <keygen> tag defines a generated key.

Differences Between HTML 4.01 and HTML5

The keygen element is new in HTML.

Attributes

Attribute Value Description
autofocus disabled Makes the input field focused on page load
challenge challenge Specifies that the value of the keygen is set to be challenged when submitted.
disabled disabled Disables the keytag field
form formname Defines one ore more forms the input field belongs to.
keytype rsa
other
Specifies the security algorithm of the key.
rsa generates a RSA key.
name fieldname Defines a unique name for the input element. The name attribute is used to collect the fields value when submitted.

Standard Attributes

The <keygen> tag also supports the Standard Attributes in HTML5.

Event Attributes

The <keygen> tag also supports the Event Attributes in HTML5.


Have Any Suggestion? We Are Waiting To Hear from YOU!

Your Query was successfully sent!