Set the Color of Text with CSS



To set the color of a text, use the color property.

Example

You can try to run the following code to learn how to work with the color property in CSS:

<html>
   <head>
   </head>
   <body>
      <p style = "color:blue;">
         ANTARTICA is a continent
      </p>
   </body>
</html>
Updated on: 2020-01-30T10:39:57+05:30

205 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements