Skip to Main Content


The Body Tag

By: Neil Thurlwell - SEO for BT (CustomerStreet)
Comments (0)
Dec
26

Customer Street advice on using the BODY tag in your website coding.

What is the BODY Tag ?

The body tag defines the main body area of the page. It contains all the contents of the page including text, images, colours, graphics etc. The body tag starts with <body> and then ends with </body>. Everything between these tag will be show on page (unless specific attributes are defined to a tag).

Example

The Body Tag

Some Optional Attributes

alink
Values - rgb(x,x,x), #xxxxxx, colorname
Specifies the color of the active links in the page. This function has been Deprecated. Use styles / style sheets instead.
background
Values - rgb(x,x,x), #xxxxxx, colorname
Specifies an image to use as the background on the page. This function has been Deprecated. Use styles / style sheets instead.

bgcolor
Values - rgb(x,x,x), #xxxxxx, colorname
This controls the background colour of the page. This function has been Deprecated. Use styles / style sheets instead.

link
Values - rgb(x,x,x), #xxxxxx, colorname
Specifies the color of the active links in the page. This function has been Deprecated. Use styles / style sheets instead.

text
Values - rgb(x,x,x), #xxxxxx, colorname
Specifies the color of the links on the page. This function has been Deprecated. Use styles / style sheets instead.

vlink
Values - rgb(x,x,x), #xxxxxx, colorname
Specifies the color of the visited links onthe page. This function has been Deprecated. Use styles / style sheets instead.

So your page with the body tag in would look like this

<html>
<head>
</head>

<body>
The content of the document……
</body>

</html>

Standard Attributes

id, class, title, style, dir, lang, xml:lang

These will be explained in more detail in future posts

Event Attributes

onload, onunload, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup

These will be explained in more detail in future posts

Why is the Paragraph Tag important ?

The body tag is important as it defines the body of the page. Witout this tag your website would not display correctly.

  • Digg
  • del.icio.us
  • ThisNext
  • MisterWong
  • Wists
  • BlinkList
  • blogmarks
  • Netscape
  • NewsVine
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • YahooMyWeb
1 Star2 Stars3 Stars4 Stars5 Stars
3.2
after 5 Votes

Leave a comment

Back to Top