HTML - Background

your webpage suuport white background by default .You may not like it, but no worries. HTML provides you following two good ways to decorate your webpage background.

HTML background with color

The bgcolor attribute is used to control the background of an HTML element, specifically page body and table backgrounds.

Example :-

Result :-
This background is yellow
This background is sky blue
This background is green

HTML- Background with Image

The background attribute can also be used to control the background of an HTML element, specifically page body and table backgrounds. You can specify an image to set background of your HTML page or table.

Example :-

Here are the examples to set background images of a table

Result :-
This background is filled up with HTML image.

Patterned and Transparent Background

You might have seen many pattern or transparent backgrounds on various websites. This simply can be achieved by using patterned image or transparent image in the background.

It is suggested that while creating patterns or transparent GIF or PNG images, use the smallest dimensions possible even as small as 1x1 to avoid slow loading.

Example :-

Result :-
This background is filled up with a pattern image.
This background is filled up with a pattern image.