HTML Body Tag
<html>
<head>
<title>My Great Page</title>
</head>
<body>
Page text goes here.
</body>
</html>
NOTE: Most of the time, HTML syntax is simply this: for each opening tag there is a matching closing tag that begins with </
These are the basic tags that every HTML page needs.
-html
-head
-title
-body
The
body tag follows the closing
head tag.
<body background=/images/hi.jpg bgcolor=blue bgproperties=fixed text=red link=blue alink=red vlink=green topmargin=0 leftmargin=0 marginheight=0 marginwidth=0>
Here are the body tag attributes and explanations:
-background - This takes the path to an image. Full URL or relative path.
-bgcolor - Can be standard color or hexidecimal with pound. Example: #FFFFCC
-bgproperties - when set to
fixed, background image will not scroll with page but will remain in place.
-text - Text color on page. Can be standard color or hexidecimal with pound. Example: #FFFFCC
-link - Link color on page. Can be standard color or hexidecimal with pound. Example: #FFFFCC
-alink - Active Link color on page. Can be standard color or hexidecimal with pound. Example: #FFFFCC
-vlink - Visited Link color on page. Can be standard color or hexidecimal with pound. Example: #FFFFCC
-topmargin - Number of pixels from top. (Most Browsers)
-leftmargin - Number of pixels from left. (Most Browsers)
-marginheight - Number of pixels from top. (Netscape)
-marginwidth - Number of pixels from left. (Netscape)
NOTES: When setting margins, the most widely implemented two attributes are topmargin and leftmargin (supported in IE, Firefox, Safari). The other two attributes are old Netscape attributes and I don't know if they even apply anymore. Doesn't hurt to throw them in.
Resources:
HTML Tutorials
HTML Title Tag
HTML Underline Text
HTML Color Codes
HTML Font Code
HTML New Paragraph
HTML Tags
HTML Tables
HTML Italic Tex
HTML Bold Text
HTML Strikethrough Text
The Classic BareBones Guide to HTML
W3C's Official HTML 4.01 documentation
Javascript Query String
Javascript Tutorials
HTML Tags
Perl Tutorials
HTML Codes
| | | |
| | | CSS David McFarland |
| | | |