Color picker

The <input> element with type="color" allows the user to select a color. How looks the element depend from browser and platform.

code result
<input id="mycolor" name="mycolor" 
type="color" value="#ff0000">

attributes

attribute description
id, name Name of element.
value Value for submission. The value of an element is always a string representing the color: "#rrggbb". The user can enter characters in upper or lower case, but it will be stored in lower case.
form Id of the associated <form> element.