Skip to content
Related Articles

Related Articles

HTML | <input type=”color”>

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 02 Jun, 2022

The HTML <input type=”color”> is used to define a color picker. the value should be a seven character hexadecimal notation. It has a Default value which is #000000(black). 


<input type="color"> 



<!DOCTYPE html>
        HTML DOM Input Type = "color"
<body style="text-align:center;">
        HTML &lt;input type="color&gt;
        Select your favorite color:
        <input type="color"

Output :


Supported Browsers:

  • Google Chrome 20.0 and above
  • Firefox 29.0 and above
  • Edge 14 and above
  • Opera 12 and above
  • Apple Safari 12.1 and above

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!