HTML <keygen> tag
You are Here:
HTML <keygen> tag
The <keygen>
tag generates a value (key generated by RSA algorithm) submitted along with form submit. It is much similar to UUID (Universally Unique IDentifier).
The purpose of <keygen>
element is to provide a secure way to authenticate users.
Warning: The <keygen>
tag is deprecated and is no longer recommended.
Example
HTML Online Editor
<!DOCTYPE html>
<html>
<body>
<keygen name="name" challenge="challenge string" keytype="type" keyparams="pqg-params">
</body>
</html>
Attributes
Attribute | Value | Explanation |
---|---|---|
autofocus | - | Specifies that an <keygen> element should automatically get focus when the page loads. |
challenge | text | Specifies a string that is submitted along with the public key. Default is empty string |
disabled | - | Specifies that the keygen is not available. |
form | element_id | Specifies the form element that this element is associated. |
keytype | text | Specifies the type of key generated. Default value is RSA |
keyparams | pqg-params | This attribute is required for DSA and EC key generation and ignored for RSA key generation |
name | text | Specifies the name of the keygen, which is submitted with the form data. |
Reminder
Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in HTML.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.