The <keygen> element

This is a legacy/obsolete element. It's no longer defined in the specification, and using it will make your HTML invalid.

Short for ‘Key Generator’. Generates a cryptographic key pair. The public key is submitted as part of the form data, while the private key is kept in the browser's private key store.

This is an empty element, so it shouldn't have a closing tag.

Full list of attributes

All the usual HTML global attributes are available

autofocus
If present, this element should be given keyboard focus when the page first loads.
challenge
A piece of text to package up in the public key submitted with the rest of the form.
disabled
Prevents the control from being manipulated or from including its public key in the submitted form data.
form
The <form> element with which this key generator is associated.
keytype
The name of a method for creating private/public key pairs. Different browsers might support different methods, and there's no guarantee that any particular browser will support any at all. The default, if it's supported, is rsa.
name
The name used for the public key data in the form submission.

The Web Design Academy Contact us

By form

By Phone

+44 (0)113 234 4611

By email

enquiries@thewebdesign.academy

By snail mail

Suite 3 15 South Parade Leeds LS1 5PQ United Kingdom