Computer >> Computer tutorials >  >> Programming >> Javascript

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>