What is the html code to put certain text on a colored background?

I want to know how to do html code so that i can have some text on a light blue background, and some text on a light pink background, for a blog i’m creating that has his/her comments… sort of like when you quote someone in a forum, and it shows up on a different colored background (just where the text is) so that you know it’s not the writer saying it, but quoted text… sorry if this doesn’t make sense… does anyone know what the code is to do this? thank you!

Hex codes might be good.

Try the link below to get a hex code you want.

Then your codes would look something like this:

(Light blue)

<div style="background-color:#8798FF;">
Comment goes here.
</div>

(Link pink)

<div style="background-color:#FF98C6;">
Comment goes here.
</div>

So it’s the same code;-just replace the hex codes with the ones you generate. (The hex codes here are 8798FF and FF98C6).

And you don’t have to use divs, it can be paragraph tags or whatever. Your choice.

Technorati Tags: , , , , , , , , , , , , ,