1. Home
  2. Computer Science MCQs
  3. HTML
  4. Which element provides a secure way to authenticate the…

Added 20 Jan 2024

Which element provides a secure way to authenticate the user?

  1. <keygen> Correct answer
  2. <datalist>
  3. <output>
  4. <input>

Correct answer

A. <keygen>

12 views

MCQSEXAM

Explanation

The <keygen> element was introduced in HTML5 to authenticate users securely: on form submission it generated a public/private key pair, kept the private key in the browser and sent the public key to the server.

Be aware that <keygen> has since been deprecated and removed from modern browsers, though it still appears in HTML5 tests.

Practise more Computer Science MCQs with answers and explanations on MCQsExam.com.

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More HTML MCQs

Practise all HTML MCQs

Similar MCQs