Skip to main content

Command Palette

Search for a command to run...

Input types you should try out

Updated
โ€ข1 min read
Input types you should try out

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 /> ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰
D

A nice chunk of info related to web page interaction.

By the way, plz correct the grammar in this line <br> - "but the are other input types that can add more functionality to your HTML forms and page."

M

Glad you love it, and thank you very much for the correction

1