Explain new form input types in HTML5.

Input Type attributes

  • color - This input type allows the user to select a color from a color picker.
  • date - This input type allows the user to select a date from a drop-down calendar. (not supported by the Internet Explorer and Safari browsers.)
  • time - This input type allows the user to enter a time. (not supported by the Internet Explorer and Safari browsers.)
  • datetime - This input type allows the user to select date and time along with timezone.
  • datetime-local - This input type allows the user to select both local date and time. (not supported by Firefox, Safari, and Internet Explorer browsers.)
  • week - This input type allows the user to select week and year from the drop-down calendar. (not supported by Firefox, Safari, and Internet Explorer browsers.)
  • email - This input type allows the user to enter an e-mail address.
  • month - This input type allows the user to select a month and year from a drop-down calendar. (not supported by Firefox, Safari and Internet Explorer browsers.)
  • number - This input type allows the user to enter a numerical value.
  • range - This input type allows the user to enter a numerical value within a specified range.
  • search - This input type allows the user to enter a search string within the input field.
  • tel - This input type allows the user to enter a telephone number. (not supported by any browser.)
  • url - This input type allows the user to enter the URL.