Tutorials

KodeKite Tools

HTML
Flexbox
SVG
Canvas
HTML Tutorial

More


HTML Keygen Element
Keygen Element

Keygen is a HTML5 element used to specifies a key-pair generator field for forms. It creates two keys one private and other public, when form is submited the private key is stored locally and public key is sent to server.

Syntax

<keygen name="name">


You can define one or more than one keygen element in a document.


Example


Practice Task

Open notepad or any other text editor, follow the following points.


  • Use <form> element to create form
  • Inside form use <input> element to create text field
  • Inside form use <keygen> element to create keygen
  • Inside form create submit button using <input type="submit">

save file with name task.html or task.htm and then open it using any browser and see results.


Solution