HTML Old School

Background

BODY background

Some older browsers have silver predefined background, but other browsers have white background. To avoid those differencies use bgcolor attribute in body tag.

<body bgcolor="#0000FF">

Example: 0200bgcolor.html

 

Background Image

Instead of HTML color image can be used for body background.

<body background="../slike/slika.jpg">

Example: 0210background.html

 Also animated gif image

Animated image: 0220background.html

 

CSS

Today, modern browsers dont use background and bgcolor HTML attributes.

Instead of that they use:

  • background: #FEF
  • background: #FFF url('img.jpg')
  • background-color: #FEF