|
Background
is defined inside the <BODY> tag, by using
different attributes. There are two methods of
defining a background:
●
Background as a color:
To
define a background color, you must use “bgcolor”
attribute. The color value can be hexadecimal
number, an RGB value, or a color name.
<body
bgcolor=”#FFFFFF”> hexadecimal
number
<body
bgcolor=”white”> color
name
<body
bgcolor=”rgb(0,0,0)”> RGB
value
●
Background as an image:
To
define a background image, you must use
“background” attribute. The image’s address can be
a URL address or a server path.
<body
background="http://htmlhelps.net/images/grass.gif">
<body background="images/grass.gif">
|