Sobes.tech
Junior

What new form elements were introduced in HTML5?

sobes.tech AI

Answer from AI

  • <datalist> — an element containing a set of predefined options for <input>. It creates a dropdown list when typing in the input.
  • <keygen> — an element that generates a pair of public and private keys. The public key is sent to the server. (Deprecated and not recommended for use).
  • <output> — an element representing the result of a calculation or user action.

In addition to new elements, new types have been introduced for the existing <input> element:

  • color
  • date
  • datetime-local
  • email
  • month
  • number
  • range
  • search
  • tel
  • time
  • url
  • week