• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 21. Formatting: The Old Way > Another Way to Choose Default Colors

Another Way to Choose Default Colors

Another way to change the default color for text is by setting the text attribute in the body tag. You can still change the color of individual words or paragraphs with the font tag (see page 347).

Figure 21.9. You can also set the default color for the text by using the text attribute in the body element.

<body text="red">

<h1>Barcelona Night Life</h1>

<p>Barcelona is such a great place to live. People
there really put a premium on <b>socializing</b>.
Imagine it being more important to go out with your
friends than to get that big promotion. Even when
you're, gasp, <i>pushing 30</i>. They say there
are more bars in <a href="http://www.bcn.es/
english/ihome.htm" target="_blank">Barcelona
</a> than in the rest of the European community
<i>combined</i>. Don't get me wrong, I don't
mean that everyone gets drunk all the time--bars
are for hanging out and talking or for having a cup
of coffee (espresso, of course).</p>

<p>The opinions expressed on this page are mine
and mine alone.</p>

</body>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint