Simple Font Color Question (HTML)

prime2515102

[H]ard|Gawd
Joined
Mar 3, 2003
Messages
1,603
Hi

Long story short, I'm learning HTML again from scratch...

I've been reading that the <font> tag should be avoided (as XHTML and HTML 4 don't use it anymore) and I should use styles instead. So here's my question...

If I start a paragraph I can use <p style="color:xxx"> to change the font color, but what if I want the color of just 1 or a few words to be different from the rest?

For example, say I used <p style="color:blue"> and I wanted this:

Here is a blue sentence, but I want one of the words to be red.

I tried to search for this but I kept getting the <font> tag and color charts.

Thanks :)
 
Back
Top