The keygen element represents a control for generating a public-private key pair and for submitting the public key from that key pair.
Descriptions for attributes specific to this element #
Additional constraints and admonitions #
- The interactive element keygen must not appear as a descendant of the a element.
- The interactive element keygen must not appear as a descendant of the button element.
- Any keygen element descendant of a label elementwith a for attribute must have anID value that matches that for attribute.
Permitted parent elements #
any element that can contain phrasing elements
DOM interface #
interface HTMLKeygenElement : HTMLElement { attribute boolean autofocus; attribute DOMString challenge; attribute boolean disabled; readonly attribute HTMLFormElement form; attribute DOMString keytype; attribute DOMString name; readonly attribute DOMString type; readonly attribute boolean willValidate; readonly attribute ValidityState validity; readonly attribute DOMString validationMessage; boolean checkValidity(); void setCustomValidity(in DOMString error); readonly attribute NodeList labels;};