I have the below message (slightly changed):
\"Enter the competition by January 30, 2011 and you could win up to $$$$ — including amazing summer tri
You could use the HTML5 Tag <mark>
:
<p>Enter the competition by
<mark class="red">January 30, 2011</mark> and you could win up to $$$$ — including amazing
<mark class="blue">summer</mark> trips!</p>
And use this in the CSS:
p {
font-size:14px;
color:#538b01;
font-weight:bold;
font-style:italic;
}
mark.red {
color:#ff0000;
background: none;
}
mark.blue {
color:#0000A0;
background: none;
}
The tag <mark>
has a default background color...at least in Chrome.
<font color="red">This is some text!</font>
This worked the best for me when I only wanted to change one word into the color red in a sentence.