Home | Computer Science

HEX VALUE
In CSS, a color can be specified using a hexadecimal value in the form: #rrggbb Where rr (red), gg (green) and bb (blue) are hexadecimal values between 00 and ff (same as decimal 0-255).


4. CSS color with HEX. Here is what the "styles.css" file looks like: "styles.css" h2{ background-color: #6a5acd; } h3{ background-color:#ffa500; } "External.html" <html> <head > <link rel="stylesheet" href="styles.css"> </head > <body> <h2 > <This is Way to add color with HEX></h1 > <p h3> <This is Way to add color with HEX.></p > </body> </html>

This is Way to add color with RGB

This is Way to add color with RGB