English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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.
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 ‹/›
IEFirefoxOperaChromeSafari
Firefox, Opera, Chrome, and Safari 6 Supports the name attribute of the <keygen> tag.
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.
The <keygen> tag is an HTML5 in the new tag.
<keygen name="name">
Value | Description |
---|---|
name | The name of the <keygen> element. |