Thursday, 12 March 2015

SPOT COLOR

When you change a page’s text colors by using attributes to the <body> tag, that change affects all the text on the page. Spot color is the ability to change the color of individual characters on your page, which you can use instead of or in addition to a global text color.

FIGURE 7.30 background and text colors.














In yesterday’s lesson you learned about using the HTML tag <font> for setting the font size and font name. a third attribute to <font>, color, enables you to change the color of individual words or phrases. The value of color is either a color name or number:

<p> when we go out tonight, we’re going to paint the town

<font color =” #ff0000”>RED</font>

Of course, you can use font sport colors in addition to font names and sizes.

No comments:

Post a Comment