|
The Web page contains many objects which can be formatted. Paragraphs, Lists, Tables, all are their own objects, and can each be formatted to have a specific "look."
The web page itself is an object. Part of the source code is set aside for the computer to use internally. This portion is called the "head" and everything pertaining to his part of the web page is nested inside the <HEAD> ... </HEAD> tag pair. The body of the web page is itself an "object" as well. And just as any other object within the body of the page, the body itself can be formatted. In fact, if you do nothing more that create the <BODY> tag, there are certain assumed defaults that your browser will assign to the body. The color of text, links, and the background are all set by the browser, unless the source code sets its own defaults. Whenever you want the entire page to have a certain "look", then you edit the <BODY> tag. You can change the background color, or set an image to tile in the background. You can set the colors of links, visited links and text. You can set top and left margins. All of these "attributes" are a part of the entire page, and are therefore controlled by code within the <BODY> tag. For example, if I wanted to set my background color to gray (Internet Explorer's default background color is white, Netscape is gray) then I would type the following code:
The resulting page would look as follows:
|