Colors are very important to give a good look to the website and engage the users. So, different colored text elements are added to enhance the visuals of the webpage. The CSS color property defines the text color for an HTML element.
Note: There are different ways to specify the color values in CSS, for example using color keywords, RGB color values, Hexadecimal color values, and many more.
Example: In the following example, the heading is in green color as specified in <h3> styling tag, “content” class have grey color text while the text in ordinary <p> tag have black text color which is default text-color for the page as defined in the body selector.