HTML Body Tag

The HTML <body> tag represents the area inside a web page in which the text, hyperlinks, images, tables, lists, etc can be displayed. The HTML <body> tag acts as a container for other HTML tags.

The HTML <body> tag can contain attributes. Attributes are used to provide some additional information to the tags so that HTML tags can work better.

Attributes Description
bgcolor*Bgcolor stands for background color. It is used to change the document's background color. Color can be given in any one of the following formats: bgcolor="Red" or bgcolor="#f1f1f1".
text*Use to set the default foreground color of the document i.e. text color
background*Background attribute specifies a background picture. The picture is tiled behind the text on the page.
link*Specify the hyperlink color
alink*Change the color of active link
vlink*Change the visited hyperlink color
Note: * means deprecated tag/attribute.
Body attribute: bgcolor
<body bgcolor="lightgreen">
<body bgcolor="#55ff55">
Type the color name or color code to check valid color output.
Body attribute: text
<body text="white">

Body attribute: background

<body background="image.jpg">

Some sample background images, download it and try to apply it to the body background.

1
html body background - ankitweblogic html body background - ankitweblogic html body background - ankitweblogic html body background - ankitweblogic html body background - ankitweblogic html body background - ankitweblogic html body background - ankitweblogic html body background - ankitweblogic html body background - ankitweblogic html body background - ankitweblogic html body background - ankitweblogic html body background - ankitweblogic
Related Topic:

Ad: