When writing in HTML, the tag is used to designate a key-pair generator field used within

tags. Upon submission, the public key is sent to the server while the private key is stored locally. They are useful for adding security to forms. The following sections contain information about the tag, including an example of it in use, and related attributes and browser compatibility.

Example of code

Username:
Encryption:

Example result

Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The following table shows all of the current unique HTML attributes for the tag, and a description of each.

The tag belongs to a group of tags called form elements.

  • Example of code
  • Example result
  • Attributes
  • Compatibility
  • Additional form elements
  • Related information

Compatibility

Additional form elements