The HTML5 keygen Tag

The use of HTML5 <keygen> tag is necessary when the author has to specify a key pair generator field which is incorporated within forms. Once the user accomplished the form and proceeded to submitting it, the private key is saved locally. On the other hand, the public key is then sent to the server.

There is no point of comparison between HTML4.01 and HTML5 when it comes to the use of the <keygen> tag. It is not introduced in HTML4.01.

Using the HTML5 <keygen> tag is not a complicated task since this is also capable of providing support for the Event Attributes and Global Attributes in HTML5. On the other hand, there may be a little issue with the web browsers. The HTML5 <keygen> tag is not identified by Internet Explorer. However, the HTML5 <keygen> tag is perfect for the other web browsers like Google Chrome, Safari, Opera and Firefox.

The attributes for HTML5 <keygen> tag are the following:

Attribute

Value

Description

autofocus (New)

autofocus

This is the method of ensuring that the <keygen> element would be automatically focused the moment that the web page loads up completely

challenge (New)

challenge

It is useful for specifying that the value of the <keygen> element should be challenged the moment that the user submits the form

disabled (New)

disabled

It is capable of disabling the <keygen> element

form (New)

form_id

It is used in providing details for one or more forms that the <keygen> element is incorporated in

keytype (New)

rsa
dsa
ec

It is used for determining the security algorithm of the key

name (New)

name

It is the name provided for the <keygen> element

 

Featured pages

Overview

Learn about HTML5 architecture, design principles and patterns on HTML5 Overview Tutorial. Become …

Tags

Learn about HTML5 tags and discover a new list of HTML5 tags. Find out about HTML5 tags support by…

Welcome

 Learn HTML5 development techniques, tips and tricks on our website. Find out what is required…

Date Time Picker

HTML5 forms use date and time controls regularly. HTML5 date and time controls are used by booking …