Articles → HTML 5 → Color Input Element In Html5

Color Input Element In Html5






Purpose





Syntax


<input type="color" />



Example


<!DOCTYPE html>
<html lang="en"
	xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<input type="color"  />
	</body>
</html>

Try It


Output


Picture showing the output of the color input element in html5
Click to Enlarge


Browser Support


Internet ExplorerFirefoxChromeSafariOperaEdge
38.029.020.010.111.01Yes



Video





Posted By  -  Karan Gupta
 
Posted On  -  Friday, September 15, 2017

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250