Change Text Color In HTML

How to: Change Text Color In HTML

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest
Share on email

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.