King color

Change Font Size:

HTML background colors and background images

The HTML <body> background on the two properties, one bgcolor, the background color is set and the other is the background, set the background picture.

Bgcolor attribute

Bgcolor attribute to set the background color HTML pages.

Example

Background attribute

Background attributes used to set the background picture HTML pages. Background attribute value is the background picture the path and filename, such as:

  <body Background="../images/html_tutorials/nt22_logo.gif" /> 
  <body Background="http://www.nt22.com/gifs/nt22_logo01.gif" /> 

If the page is less than the background picture window, then this background picture will be automatically repeated.

Example

Proposal

Bgcolor and background of these two attributes <body>, in the new HTML standard (HTML and XHTML 4), does not recommend the use, and the proposed use CSS set background colors and images.

To ensure that Web browser included in the rate, as far as possible not to use the proposed bytes large picture as a background picture.