Skip to content
Related Articles

Related Articles

Improve Article
HTML | <input type=”color”>
  • Last Updated : 28 May, 2019

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 <input type="color> 
        Select your favorite color:
        <input type="color" 

Output :

Supported Browsers:

  • Google Chrome 20.0
  • Firefox 29.0
  • Edge 38.0
  • Opera 11.1
  • Apple Safari 10.1
My Personal Notes arrow_drop_up
Recommended Articles
Page :