#77 - background color is faster than background pattern


For live examples of the HTML for background colors and patterns, check out Show Me the HTML! Cool!

Background patterns are nice because they allow you to use any image that you want for your background. But background colors are a lot faster than background patterns.

A browser can paint a background color as soon as it reads the single-line <body bgcolor=RRGGBB> HTML tag. With a background pattern, the browser has to wait until it reads the entire background pattern file before it can tile the background. The delay can be dramatic, and your poor viewer is stuck staring at a blank screen.

Another great way to get color is with table cell background colors. The following table is an example:

Teal Table Cell

Cyan Table Cell

The fast-loading HTML for the teal colored table cell is: <td bgcolor="#008080">.

You will have to decide for yourself whether you want the quick response and instant impression of a background color, or the superior graphic impact of a background pattern. If you choose a background pattern, remember to reduce the size of the graphic file as much as possible.

Time is of the essence!


back to great website design tips
feedback


Copyright 1996-2003, Unplugged Software, Inc.Custom Website Design