HTML
1
2
<html>
3
<head>
4
<title>Hex Gray Color Example</title>
5
</head>
6
<body>
7
<h2 style="background:#000000; color:#ffffff">Black</h2>
8
<h2 style="background:#808080">Gray</h2>
9
<h2 style="background:#dcdcdc;">Gainsboro</h2>
10
<h2 style="background:#ffffff;">White</h2>
11
</body>
12
</html>
CSS
โx
1
โ
JavaScript
1
1
โ
Output: