Multiple choice

Which of the following elements in HTML5 specifies a key-pair generator field in a form and is also a complicated cryptographic key?

  1. datalist

  2. keygen

  3. output

  4. autocomplete

  5. autofocus

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This element in HTML5 specifies a key-pair generator field in a form. The purpose of the element is to provide a secure way to authenticate users. When the form is submitted, two keys are generated, one private and one public. The private key is stored locally and the public key is sent to the server.