Color
suggest change<input type="color" name="favcolor" value="#ff0000">
In supporting browsers, the input element with a type attribute whose value is color
creates a button-like control, with a color equal to the value of color
attribute (defaults to black if value is not specified or is an invalid hexadecimal format).
![](/essential/html/img/0009d8a2f5551d25ebce5d32032a8f0430a7a806.png)
Clicking this button opens the operating system’s color widget, which allows user to select a color.
![](/essential/html/img/feecf95883de18930fedf9fd48e4c2a481f92c87.png)
Fallback for browsers which do not support this input type is a regular input type=text
.
![](/essential/html/img/f3b1284274c30a13fd9d927895c5e328d918fd01.png)
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents