Reference Codes and Color Names in HTML and CSS

Computers provide millions of colors that we can use just by writing a certain code that matches the desired color.

These colors can be used to make your website or blog look more attractive. Common colors that are easy to remember are red, yellow, green, blue and other primary colors. While the variations of these colors are difficult to memorize.

web css html color name
Color name (Photo via

To determine the color on a web page with CSS, we usually use a color code such as #ff0000 for red, or #fff000 for yellow.

The implementation is also easy with css, for example to give red color to the H1 tag tag

h1{ color: #ff0000 }
or you can directly write the name of the color like this

h1{ color: red }
or if you want it directly on the h1 tag


Here is another color code you can use