The body
element contains all the displayed
content of the document. Its parent element is html
and it appears after the head
element. It can contains block-level
elements and the script
element.
Attributes
Apart from the
Core Attributes,
there are a number of presentational attributes the body
can have.
However, all the presentational attributes are deprecated in favor of CSS. These deprecated attributes are:
background
- The value of this is a URL of an image which will be used as a tiled background to the entire page
bgcolor
- The value of this is a color name or a color specified in hexadecimal notation. This sets the background color of the page.
text
- The value of this is a color name or a color specified in hexadecimal notation. This sets the color of the text in the page.
link
- The value of this is a color name or a color specified in hexadecimal notation. This sets the color of links in the document.
alink
- Sets the color of links when they are in the active state.
vlink
- Sets the color of visited links.
No comments:
Post a Comment