HTML and CSS Reference
In-Depth Information
Of course, it's best to select a text color that contrasts well with your
background color or image.
The text attribute is deprecated in HTML 4 and XHTML because you can
achieve similar effects using stylesheets.
5.3.1.5. The link, vlink, and alink attributes
The link , vlink , and alink attributes of the <body> tag control the color
of hypertext (text inside the <a> tag) in your documents. All three ac-
cept values that specify a color as an RGB triplet or color name, just like
the text and bgcolor attributes.
The link attribute determines the color of all hyperlinks the user has not
yet followed. The vlink attribute sets the color of all links the user has
followed at one time or another. The alink attribute defines a color for
active link texti.e., a link that is currently selected by the user and is
under the mouse cursor with the mouse button depressed.
Like text color, you should be careful to select link colors that can be
read against the document background. Moreover, the link colors should
be different from the regular text as well as from each other.
These attributes are deprecated in HTML 4 and XHTML because you can
achieve similar effects using stylesheets.
5.3.1.6. The leftmargin attribute
Once peculiar to Internet Explorer but now supported by all the popular
browsers, the leftmargin attribute extension for the <body> tag lets you
indent the left margin relative to the left edge of the browser's window,
much like a margin on a sheet of paper. Antiquated browsers ignore this
attribute, and just left-justify the body content to the left edge of the
document window.
 
Search WWH ::




Custom Search