Horje
How to create HTML Shades of Gray Color

Shades of gray are often defined using equal values for all three parameters:


Example of HTML Shades of Gray Color


<h1 style="background-color:rgb(60, 60, 60);">rgb(60, 60, 60)</h1>
<h1 style="background-color:rgb(100, 100, 100);">rgb(100, 100, 100)</h1>
<h1 style="background-color:rgb(140, 140, 140);">rgb(140, 140, 140)</h1>
<h1 style="background-color:rgb(180, 180, 180);">rgb(180, 180, 180)</h1>
<h1 style="background-color:rgb(200, 200, 200);">rgb(200, 200, 200)</h1>
<h1 style="background-color:rgb(240, 240, 240);">rgb(240, 240, 240)</h1>

Full Example of HTML Shades of Gray Color

index.html
Example: HTML

<!DOCTYPE html>
<html>
<body>
<h1 style="background-color:rgb(60, 60, 60);">rgb(60, 60, 60)</h1>
<h1 style="background-color:rgb(100, 100, 100);">rgb(100, 100, 100)</h1>
<h1 style="background-color:rgb(140, 140, 140);">rgb(140, 140, 140)</h1>
<h1 style="background-color:rgb(180, 180, 180);">rgb(180, 180, 180)</h1>
<h1 style="background-color:rgb(200, 200, 200);">rgb(200, 200, 200)</h1>
<h1 style="background-color:rgb(240, 240, 240);">rgb(240, 240, 240)</h1>
</body>
</html>

Output should be:

Full Example of HTML Shades of Gray Color





Related Articles
HTML RGB and RGBA Colors HTML RGB and RGBA Colors
How to create HTML Shades of Gray Color HTML RGB and RGBA Colors
How to create HTML RGBA Color Values HTML RGB and RGBA Colors

Single Articles
Example of HTML Shades of Gray Color HTML RGB and RGBA Colors
Full Example of HTML Shades of Gray Color HTML RGB and RGBA Colors

Category :
Web Tutorial
Sub Category :
HTML RGB and RGBA Colors
Uploaded by :
Admin


Read Article
https://horje.com/learn/1434/reference