HTML keytype Attribute
Definition and Usage
The keytype attribute specifies a key type to be used.
Note: The support for key types may vary between browsers.
Applies to
The keytype attribute can be used on the following element:
Element | Attribute |
---|---|
<keygen> | keytype |
Example
Keygen Example
Generate the key with an RSA alogrithm:
<form action="demo_keygen.asp" method="get">
Username: <input type="text" name="usr_name">
Encryption: <keygen name="security" keytype="rsa">
<input type="submit">
</form>
Try it Yourself »
Browser Support
The numbers in the table specify the first browser version that fully supports the attribute.
Attribute | |||||
---|---|---|---|---|---|
keytype | Yes | Not supported | Yes | Not supported | Yes |