Usage of color property in CSS


The color property is used to set the color of text. You can try to run the following code to learn how to work with the color property in CSS:

Example

<html>
   <head>
   </head>
   <body>
      <p style = "color:blue;">
         This text will be written in blue.
      </p>
   </body>
</html>

Updated on: 31-Jan-2020

90 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements