Example -
Body Element Attributes

Previous page...

The background colour of a web page can be changed using the bgcolor Attribute of the body Element.

The text colour of a web page can be changed using the text Attribute of the body Element.

The HTML

<html>
<head>
	<title>Body Element Attributes</title>
</head>

<body bgcolor="Silver" text="Blue">

The background colour of a web page can be changed using the
<b>bgcolor</b> Attribute of the <b>body</b>
Element.

<p>The text colour of a web page can be changed using the
<b>text</b> Attribute of the <b>body</b>
Element.
</body>
</html>		

Important - the spellings in HTML are American (US). For example it is 'BGCOLOR' not bgcolour.

For more information on colours click here.

Back to Top of Page

© 2003 Ashley Preston 

Computeach International Ltd