HTML <keygen> nameAttribute
Example
A form with a keygen field:
<form action="demo_keygen.html" method="get">
Username: <input type="text" name="usr_name">
Encryption: <keygen name="security">
<input type="submit">
</form>
Username: <input type="text" name="usr_name">
Encryption: <keygen name="security">
<input type="submit">
</form>
Try it Yourself »
Browser Support
![]()
![]()
![]()
![]()
![]()
Firefox, Opera, Chrome, and Safari 6 support the name attribute of the <keygen> tag.
Definition and Usage
The name attribute specifies the name of the <keygen> element.
The name attribute of the <keygen> element is used to reference form data after the form is submitted.
Differences between HTML 4.01 and HTML5
The <keygen> tag is new in HTML5.
Syntax
<keygen name="name">
Attribute Values
| Value | Description |
|---|---|
| name | The name of the <keygen> element. |
HTML <keygen> Tag Other Extensions