Summary


In this hour you learned how to set the background and text colors for a web page. You also found out how to make a tiled background image appear behind a web page, how to make foreground images partially transparent so that the background shows through, and how to create seamless image tiles for use as backgrounds.

Table 9.1 summarizes the attributes of the <body> tag discussed in this hour, along with the style properties covered.

Table 9.1. Attributes and Styles of the <body> Tag Covered in Hour 9

Tag/Attribute/Style

Function

<body></body>

Encloses the body (text and tags) of the HTML document.

style="background-color:color"

Sets the background color of the page; can be overridden in child elements.

style="color:color"

Sets the color of all text on the page; can be overridden in child elements.

style="background-image:url(imageurl)"

Sets the background image of the page, which is typically a tiled image.

style="background-repeat:repeat"

Determines how the background image repeats. Possible values include repeat, repeat-x, repeat-y, and no-repeat.





SAMS Teach Yourself HTML and CSS in 24 Hours
Sams Teach Yourself HTML and CSS in 24 Hours (7th Edition)
ISBN: 0672328410
EAN: 2147483647
Year: 2005
Pages: 345

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net