How do you add colour to the text in HTML?

 You can add colour to the text in HTML by using the following code:

<!DOCTYPE html>

<html>

  <body>

    <h2>HTML Color Text Example</h2>

    <h1 style=”color: Red”>Hello HTML</h1>

    <p style=”color: Blue”>Line 1</p>

    <p style=”color: Green”>Line 2</p>

  </body>

</html>


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *