Definition

The body element defines the documents' body. It contains all the contents of the document (like text, images, colors, graphics, etc.).

Attribute

Optional attribute

Attribute:alink{rgb(x,x,x)#xxxxxx colorname Specifies the color of the active links in the document.Deprecated. Use styles instead. TF}
:background{file_name An image to use as the background. Deprecated. Use styles instead. TF }
:bgcolor {rgb(x,x,x)#xxxxxx colorname The background color of the document. Deprecated. Use styles instead. TF}
:link {rgb(x,x,x)#xxxxxx colorname Specifies the color of all the links in the document. Deprecated. Use styles instead. TF }
:text {rgb(x,x,x)#xxxxxx colorname Specifies the color of the text in the document. Deprecated. Use styles instead. TF }
:vlink{ rgb(x,x,x)#xxxxxx colorname Specifies the color of the visited links in the document. Deprecated. Use styles instead. TF

Standard attribute

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

Examples

Example 1
body example

Example 2
<body>
<h1>My Fender American Deluxe Stratocaster</h1>
<p><a href="index.html">Home</a> <a href="wood.html">Tonewoods</a> <a href="hardware.html">Hardware</a> | <a href="electronics.html">Electronics</a></p>
<img src="strat.jpg" alt="My Strat" width="640" height="423" /><div style="width:750px">
<p>This is my Fender Stratocaster.</p>
</div>
</body>


Page Information

  • 11 months ago [history]
  • View page source
  • You're not logged in
  • No tags yet learn more

Wiki Information

Recent PBwiki Blog Posts