Initially, this tag was introduced in HTML5 and later deprecated in HTML5
Attributes used with <keygen>
tag
Attribute
Description
autofocus
To focus the element automatically when the browser loads the form.To define this, simply code "autofocus" along with the <keygen> tag.
challenge
Packages the challenge string with the public key PublicKeyAndChallenge for verifying forms. If you do not code this, the browser will take a value of IA5STRING with length as 0
disabled
It disables the <keygen> field so that the user cannot edit it. The value is disabled.
form
The form attribute defines one or more forms for the elements belong to using a form_id.
keytype
Defines the type of key. Each type follows its own algorithm. It can take values such as RSA, DSA etc. RSA is the default keytype