Home
HTML
HTML Input types
Tryit: HTML input color
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h2>Show a Color Picker</h2> <p>The <strong>input type="color"</strong> is used for input fields that should contain a color.</p> <form action="/action_page.php"> <label for="favcolor">Select your favorite color:</label> <input type="color" id="favcolor" name="favcolor" value="#ff0000"> <input type="submit" value="Submit"> </form> <p><b>Note:</b> type="color" is not supported in Internet Explorer 11.</p> </body> </html>