welcome to tutorialfamily

html color

HTML color is used to giving color to a font and element.

example



<!DOCTYPE html>
<html>
	<head>
		<title>
			color demo
		</title>
	</head>
<body>
	<div class=”car” style=”color:red“>
		This is my car !!!
	</div>
	<div class=”car” style=”color:orange“>
		This is my car !!!
	</div>
	<div class=”car” style=”color:black“>
		This is my car !!!
	</div>
	<div class=”car” style=”color:gray“>
		This is my car !!!
	</div>
	<div class=”car” style=”color:#ff0000“>
		This is my car !!!
	</div>
	<div class=”car” style=”color:#FFC300“>
		This is my car !!!
	</div>
	<div class=”car” style=”color:#000“>
		This is my car !!!
	</div>
	<div class=”car” style=”color:#808080“>
		This is my car !!!
	</div>
	<div class=”car” style=”color:RGB(255, 0, 0)“>
		This is my car !!!
	</div>
	<div class=”car” style=”color:RGB(255, 195, 0)“>
		This is my car !!!
	</div>
	<div class=”car” style=”color:RGB(0, 0, 0)“>
		This is my car !!!
	</div>
	<div class=”car” style=”color:RGB(128, 128, 128)“>
		This is my car !!!
	</div>
</body>
</html>


Our Content