Input types you should try out

Input types you should try out

ยท

1 min read

The HTML input element creates interactive controls for the web. It is used in order to accept user data. The most common type of inputs are

  • text
  • passwords
  • email

but the are other input types that can add more functionality to your HTML forms and pages.

  1. Color

    <input type="color" />
    

    This displays a simple color picker on your browser...

  2. Reset

    <input type="reset" />
    

    This adds a button that clears the form and sets it to its default value

  3. Image

    <input type="image" src="sign-up.png" alt="sign up" />
    

    Now this display an image as specified in the src attribute Note: Style to taste

  4. Range

    <input type="range" />
    

    The range displays a slider with max and min values...

  5. Time

    <input type="time" />
    

    Did you know you could input time in a form, as a time value? Now you know...

<HAPPY CODING /> ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰