If you??™re using document-relative
links (i.e., links relative to the current document), remember to amend paths accordingly.
The body section
The body element is used to define the body of a web page, and it contains the document??™s
content. No document content should ever be placed outside of the body element.
Sorry for the italic type, but this is something I see on a regular basis, so I wanted to nip
that one in the bud.
Although the body element has a number of possible attributes that can be included in its
start tag, mostly for defining link state color and backgrounds, these should be avoided.
This is because such things should be dealt with using CSS, which enables you to define
values on a site-wide basis, rather than having to do so for each individual page. The body
element attributes include the likes of alink, link, and vlink for defining link colors; text
for defining the default text color; and background and bgcolor for defining a background
pattern and color. There are also a number of proprietary attributes that were intended to
set padding around web page content, which aren??™t worth mentioning further. In this next
section, we??™ll look at the contemporary way of setting content margins and padding,
default font and color, and web page backgrounds.
Content margins and padding in CSS
Page margins and padding are easy to define using CSS. By setting these values once in an
external file, you can update settings site-wide by uploading an amended style sheet rather
than every single page on your site that has an amended body tag.
Pages:
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105