You are here: Reference > HTML > tags > keygen

keygen element

Browser support:
Allows a form to be submitted with key encryption. The element generates a secure key and submits the public key with the form.
A selection list belongs to the keygen tag. The user can choose the type of the RSA key pair generation ('medium grade', 'high grade') with this selection list.
This tag is deprecated, do not use it.
If you want to see the HTML tags by categories, please visit this page.
This element cannot have a closing tag.
JavaScript page for this element: keygen.

Possible members:

Attributes
Events
Styles
accessKey
Sets an access key to an element.
challenge
Sets a challenge string for verification of an encrypted package.
class
Sets the style class or classes that belong to the element.
contentEditable
3
Sets whether the contents of the object are editable.
dir
Sets the text direction as related to the lang attribute.
DISABLED
Sets the state of an object for user interaction.
id
Sets a unique identifier for the object.
keyType
Sets the type of encryption used by the keygen element.
lang
Specifies the language of the element.
MULTIPLE
Sets whether more than one item from a list can be selected.
name
Sets the name of a form control that affects the contents of the message submitted to the server.
pqg
This attribute appears to be a security string to be sent and verified.
size
Specifies the count of the visible option items in a selection list. The selection list can be a select element or the selection list of a keygen element.
style
Sets an inline style associated with an element.
tabIndex
Specifies the tabbing order for keyboard navigation using the TAB key.
title
Specifies a tooltip for an element.

Example HTML code 1:

This example illustrates the use of the keygen element:
<form method="post" action="#URL#" enctype="application/x-www-form-urlencoded">
    <keygen name="key" challenge="1125983021" />
    <input type="text" name="textToCode" value="Some Text" />
    <br />
    <input type="submit" value="Send" />
</form>
Did you find this example helpful? yes no

External links:

User Contributed Comments

Post Content

Post Content