Open In App
Related Articles

HTML | keygen Tag

Improve Article
Save Article
Like Article

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 from is submitted then two keys are generated, private key and public key. The private key stored locally, and the public key is sent to the server. The public key is used to generate client certificate to authenticate user for future. 

Note: <keygen> tag is not supported in html5


<keygen name = "name">



<!DOCTYPE html>
            HTML keygen tag
        <h1 style = "color:green;">
        <h2>Keygen Tag</h2>
            Username: <input type="text" name="uname">
            Encryption: <keygen name="secure">
            <input type="submit">



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

  • Google Chrome
  • Firefox
  • Safari
  • Opera
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 30 May, 2022
Like Article
Save Article
Similar Reads