THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML <keygen> name Attribute

HTML keygen Tag Reference HTML <keygen> tag

Example

A form with a keygen field:

<form action="demo_keygen.asp" method="get">
  Username: <input type="text" name="usr_name">
  Encryption: <keygen name="security">
  <input type="submit">
</form>
Try it yourself »

Definition and Usage

The name attribute specifies the name of a <keygen> element.

The name attribute of the <keygen> element is used to reference form data after the form has been submitted.


Browser Support

The numbers in the table specify the first browser version that fully supports the attribute.

Attribute
name Yes Not supported Yes 6.0 Yes

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 Reference HTML <keygen> tag