Skip to content
Related Articles

Related Articles

Improve Article

HTML keygen name Attribute

  • Last Updated : 10 May, 2021

The HTML <keygen> name Attribute is used to specify the name of the <keygen> Element.

Syntax:

<keygen name="name">

Attribute Values: It contains a single value name that describes the name of the <keygen> Element. 

Example: 

HTML




<!DOCTYPE html>
<html>
    <head>
        <title>
            HTML keygen name Attribute
        </title>
    </head>
     
    <body>
        <h1 style = "color:green;">
            GeeksforGeeks
        </h1>
         
        <h2>HTML Keygen name attribute</h2>
         
        <form>
            Username: <input type="text" name="uname">
            <br><br>
            Encryption: <keygen name="secure">
            <input type="submit">
        </form>
    </body>
</html>

Output:

Supported Browsers:

  • Google Chrome
  • Firefox
  • Safari
  • Opera

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :