Приглашаем посетить
Ларри (larri.lit-info.ru)

Summary

Previous Page
Table of Contents
Next Page

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.



Previous Page
Table of Contents
Next Page