Color Attribute

<input type=color>

Explanation

Color Attribute is used to select a color from an input field.

Example Code:

Result :

Pick a color:
  • User can pick the color from the list.
  • User cannot enter any text/numerical characters as the input field is not available.
  • If you require more color options then pick them by clicking the "Drop down list", select "Others" button and pick the color.

Limitations:

It will function only in Opera and Chrome browser.
This attribute will work only in Chrome version 20.

Ask Questions

Ask Question