HTML and CSS Reference
In-Depth Information
bottommargin
This attribute specifies the bottom margin for the entire body of the page and
overrides the default margin. When set to
0
or
""
, the bottom margin is the bottom edge of
the window or frame the content is displayed in. CSS
margin
properties should be used
instead.
leftmargin
This Internet Explorer-specific attribute sets the left margin for the page, in
pixels, overriding the default margin. When set to
0
or
""
, the left margin is the left edge of
the window or the frame. CSS
margin
properties should be used instead.
link
This attribute sets the color for hyperlinks within the document that have not yet been
visited. Its value can be either a browser-dependent named color or a color specified using
the hexadecimal
#RRGGBB
format. The CSS pseudo-class
a:link
should be used instead.
marginheight
This Netscape-specific attribute sets the top margin for the document, in
pixels. If set to
0
or
""
, the top margin will be exactly on the top edge of the window or
frame. It is equivalent to combining the Internet Explorer attributes
bottommargin
and
topmargin
. CSS
margin
properties should be used instead.
marginwidth
This Netscape-specific attribute sets the left and right margins for the page, in
pixels, overriding the default margin. When set to
0
or
""
, the left margin is the left edge of
the window or the frame. It is equivalent to combining the Internet Explorer attributes
leftmargin
and
rightmargin
. CSS
margin
properties should be used instead.
nowrap
This Internet Explorer-specific attribute is used to control the wrapping of text
body width. If set to
yes
, text should not wrap. The default is
no
.
rightmargin
This Internet Explorer-specific attribute sets the right margin for the page in
pixels, overriding the default margin. When set to
0
or
""
, the right margin is the right edge
of the window or the frame. CSS
margin
properties should be used instead.
scroll
This Internet Explorer-specific attribute turns the scroll bars on or off. The default
value is
yes
.
text
This attribute sets the text color for the document. Its value can be either a named
color like
red
or a color specified using the hexadecimal
#RRGGBB
format. The CSS
property
color
should be used on the
body
element instead of this attribute.
topmargin
This Internet Explorer-specific attribute sets the top margin for the document, in
pixels. If set to
0
or
""
, the top margin will be exactly on the top edge of the window or
frame. CSS
margin
properties should be used instead.
vlink
This attribute sets the color for hyperlinks within the document that have already
been visited. Its value can be either a browser-dependent named color or a color specified
using the hexadecimal
#RRGGBB
format. The CSS pseudo-class
a:visited
should be used
instead.
Examples
<body background="checkered.gif"
bgcolor="white"
alink="red"