VOOZH about

URL: https://www.geeksforgeeks.org/html/html-keygen-tag/

⇱ HTML keygen Tag - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML keygen Tag

Last Updated : 26 Aug, 2024

The <keygen> tag in HTML is used to specify a key-pair generator field in a form. The purpose of <keygen> element is to provide a secure way to authenticate users. When a form is submitted then two keys are generated, private key and public key. The private key is stored locally, and the public key is sent to the server. The public key is used to generate a client certificate to authenticate the user for the future. 

Note: <keygen> tag is not supported in html5

Syntax:

<keygen name = "name">

Example:

Output:

👁 key1

Supported Browsers: The browser supported by <keygen> tag are listed below:

  • Google Chrome
  • Firefox
  • Safari
  • Opera
Comment
Article Tags: