English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML tag大全

HTML keygen name attribute

The name attribute specifies the name of the <keygen> element, the name attribute of the <keygen> element is used to refer to form data after submitting the form.

 HTML <keygen> tag

Online Example

Form with keygen field:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML <keygen> name attribute usage-基础教程(oldtoolbag.com)</title>
</head>
<body>
<form action="demo-form.php" method="get">
  Username: <input type="text" name="usr_name">
  Encryption: <keygen name="security">
  <input type="submit">
</form>
</body>
</html>
Test to see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

Firefox, Opera, Chrome, and Safari 6 Supports 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 submitting the form.

HTML 4.01 and HTML5differences between

The <keygen> tag is an HTML5 in the new tag.

Syntax

<keygen name="name">

Attribute value

ValueDescription
nameThe name of the <keygen> element.
 HTML <keygen> tag