How to: Change Text Color In HTML
Change Text Color In HTML

How to: Change Text Color In HTML

Changing text color in html is not that different then doing it in CSS. Instead of going to a separate file to add css code to change the text color, you can simply put the code in the <> tag. For example:

<p style=”color:red”>I am a paragraph.</p>

I am a paragraph.

 

By adding ‘style=”color:red”‘ inside the paragraph tag, it turns the color of the text that is inside the paragraph to whatever color you specify.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close Menu