Tutorials Point


  HTML Home

  HTML Tags Reference
  Selected Reading

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

HTML <keygen> tag




Advertisements

Function:

The HTML <keygen> tag is used to process Web forms with certificate management systems. The element generates a secure key and submits the public key.

NOTE: This is a Netscape only element, and there is not a lot of documentation on it.

Difference between HTML and XHTML:

In HTML the <keygen> tag has no end tag.

In XHTML the <keygen> tag must be properly closed.

Example:

<form>
<keygen name="random_key" challenge="0987654321">
<input name="firstname" value="first name">
</form>

Attributes:

AttributeValueDescription
nameunique nameSpecifies the name for the name/value pair.
challengechallengespecifies the challenge string to be packaged with the public key in the PublicKeyAndChallenge for use in verification of the form submission. If no challenge string is provided, then it is encoded as an IA5STRING of length zero.

Standard Attributes:

AttributeDescription
classDocument wide identifier
dirSpecifies the direction of the text
idDocument wide identifier
titleSpecifies a title to associate with the element.
styleHelps to include inline casecadubf style sheet.
langSets the language code.
xml:langSets the language code.

Printer Friendly

Advertisements


  

Advertisements