<keygen> Tag in HTML 5

In this article I am going to explain about <keygen> tag in html 5
  • 2065
Definition

The <keygen> tag use for specifies a key-pair generator field that used for forms.When the form is submitted, the private key is stored locally, and the public key is sent to the server.

Browser that supports <keygen> tag

 Internet explorer, Mozilla firefox, Google chrome, Opera and Safari browsers.

Lets take an example of <keygen> tag

<html>
  <head>
   <form action="test.aspx" method="get">
      Username: <input type="text" name="uname" />
     Grade: <keygen name="security" />
   <input type="submit" />
   </form>
   </head>
</html>

Output

keygen.jpg

Further Readings

You may read more about HTML 5 Tags:  here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2020 DotNetHeaven. All rights reserved.