Can you list the new input type attributes in HTML5 ?


Posted On: Feb 22, 2018


Yes, we can use below new input type Attribute in HTML5

  • tel The input is of type telephone number
  • search The input field is a search field
  • url a URL
  • email One or more email addresses
  • datetime A date and/or time
  • date A date
  • month A month
  • week A week
  • time The input value is of type time
  • datetime-local A local date/time
  • number A number.
  • range A number in a given range.
  • color A hexadecimal color, like #82345c
  • placeholder Specifies a short hint that describes the expected value of an input field.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    HTML5 Interview Questions

    What is HTML5 ?

    HTML5 is the most recent version of the HTML(Hypertext Markup Language). It is a language for structuring and displaying content for the World Wide Web, a core technology of the Internet...

    HTML5 Interview Questions

    What is < !DOCTYPE>? Is it necessary to use in HTML5 ?

    The &lt; !DOCTYPE&gt; is an instruction to the web browser about what version of HTML the page is written in. AND The &l..

    HTML5 Interview Questions

    List out the new features of HTML5?

    Some of the most interesting new features in HTML5:The &lt;canvas&gt; element for 2D drawing The &lt;video&gt; and &lt..