![]() |
|||||||||||||||||||||||||||||||||||||||
|
|
Body Element AttributesThe BODY tag contains the actual contents of the document. That contents should consist of block elements only. You may put in plain text in the body, this is then assumed to be inside a P container.The attributes contain the appearance of the document. The BACKGROUND attribute should point to the location of an image, which is used as the (tiled) background of the document. The other attributes set the colors for the background, text, links, visited links and active (currently being selected) links, using the order above. The colour is composed by specifying the red, green and blue components of the color in hexadecimal notation, with a # in front. For example, to specify white, the red, green and blue components are 255, 255, 255, so you would use "#FFFFFF". You can also use the following color names, although they are not as widely supported as the codes:
Example - Body Element Attributes
The HTML
Important - the spellings in HTML are American (US). For example it is 'BGCOLOR' not bgcolour. For more information on colours click here.
© 2002 Ashley Preston |
||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||