Saturday, 23 June 2012

How to add Color Picker in HTML5 Forms

Another form element you can add is a Colour Picker. This will be of limited use, and only the Opera browser has implement it. The HTML code is this:

<INPUT TYPE="Color">

In the browser, it looks like this:

An HTML 5 color picker

Again, it will just end up as a plain text box, if a browser doesn't support it.

No comments:

Post a Comment