Simple Color Picker Input Field In HTML Form
In this simple HTML tutorial, I am going to tell you how to create an HTML form input field where the user can choose a color.
To create a color picker for input field you can use input field type color like you can see in below line of code:
<input type="color" name="chosecolorr" value="#336600">
Below is the example of color picker input field with HTML form tag:
<form action="/action_page.php"> Chose color: <input type="color" name="chosecolor" value="#336600"> <input type="submit"> </form>
The above example will create a form like you can see below:
Leave a Reply