
The Complete Idiot's HTML Tag Reference
| Index
| Previous Tag: <BLOCKQUOTE>
| Next Tag: <BR>
|
<BODY>
A structural tag that marks the beginning of the bodythe part of the page in which your text and images appear.
Support:
-
Notes:
- This tag requires the </BODY> end tag.
Attributes:
- ALINK
= "Color value"
The color of the active link text. (An active link is one that has been clicked, but the linked page hasn't been displayed yet)
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
3.2 and later |
4.0 and later |
1.1 and later |
Notes:
- BACKGROUND
= "Text"
A filename or URL for an image upon which the page text and images will appear.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
3.0 and later |
1.0 and later |
1.1 and later |
Notes:
-
If the image is smaller than the browser window, the browser will display multiple copies of the imagethis is called tilingso that it fills the entire window.
- Make sure the image you choose doesn't obscure your page text.
- This attribute is deprecated.
- BGCOLOR
= "Color value"
The color to use for the body background.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
3.2 and later |
1.0 and later |
1.1 and later |
Notes:
-
Use either an RGB value or a color name.
- Try to use a color that's compatible with the color you're using for your page text.
- This attribute is deprecated.
- BGPROPERTIES
= "Text"
"Fixes" the BACKGROUND image so that it doesn't scroll with the text.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
2.0 and later |
Not supported |
Notes:
-
Use BGPROPERTIES = FIXED for this Internet Explorer-only attribute.
- BOTTOMMARGIN
= Positive integer
The amount of space, in pixels, between the bottom of the page and the bottom edge of the browser window.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
4.0 and later |
Not supported |
- CLASS
= "Text"
The style sheet class used by the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
3.0 and later |
4.0 and later |
Notes:
-
You can specify two or more classes; be sure to separate each class name with a space.
- ID
= "Text"
An alphanumeric string that uniquely identifies the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
3.0 and later |
4.0 and later |
Notes:
-
Although you can use letters and numbers for the ID, the first character must be a letter.
- LANG
= "Text"
The language used by the tag's attribute values and text content.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
4.0 and later |
Not supported |
- LEFTMARGIN
= Positive integer
The amount of space, in pixels, between the left side of the page and the left edge of the browser window.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
2.0 and later |
Not supported |
- LINK
= "Color value"
The color of link text within the page.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
3.2 and later |
1.0 and later |
1.1 and later |
Notes:
-
Use either an RGB value or a color name.
- This attribute doesn't affect links that the user has already visited. See the VLINK attribute.
- This attribute is deprecated.
- MARGINHEIGHT
= Positive integer
The amount of space, in pixels, between the top and bottom of the page and the top and bottom edges of the browser window.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
Not supported |
4.0 and later |
- MARGINWIDTH
= Positive integer
The amount of space, in pixels, between the left and right sides of the page and the left and right edges of the browser window.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
Not supported |
4.0 and later |
- NOWRAP
= "True/False"
Controls whether page text is automatically wrapped at the right edge of the browser window.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
4.0 and later |
Not supported |
Notes:
-
If you set this attribute to True, the browser will only start a new line when you use the <BR> tag.
- RIGHTMARGIN
= Postive integer
The amount of space, in pixels, between the right side of the page and the right edge of the browser window.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
4.0 and later |
Not supported |
- SCROLL
= "Yes/No"
Controls whether the page displays a vertical scroll bar.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
4.0 and later |
Not supported |
- STYLE
= "Text"
The style or styles to use with the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
3.0 and later |
4.0 and later |
Notes:
-
If you enter multiple style properties, separate each one with a semi-colon (;).
- TEXT
= "Color value"
The color of the page text.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
3.2 and later |
1.0 and later |
1.1 and later |
Notes:
-
Use either an RGB value or a color name.
- This attribute affects all the page text. If you want to override the color for a chunk of text, use the <FONT> tag's COLOR attribute.
- This attribute is deprecated.
- TOPMARGIN
= Positive integer
The amount of space, in pixels, between the top of the page and the top of the browser window's content area.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
2.0 and later |
Not supported |
- VLINK
= "Color value"
The color of the link text for links that the user has visited.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
3.2 and later |
1.0 and later |
1.1 and later |
Notes:
Example:
<BODY BGCOLOR="#FFFFFF BACKGROUND="back.gif" LINK="#0000FF">
Page text and images go here
</BODY>
| Index
| Previous Tag: <BLOCKQUOTE>
| Next Tag: <BR>
|
|