ankitweblogic logo
W e b t u t o r i a l s

HTML Tutorial

Define Website

Define HTML

HTML, Head, Title tag

HTML Body tag

HTML Heading tags

HTML Paragraph tag

HTML Horizontal Line

HTML Hyperlink

HTML Image tag

HTML Font tag

HTML Exercise

HTML Text Direction

HTML Comment

HTML Lists

HTML Marquee tag

HTML Table tag

HTML Table Website

HTML Frame

HTML Iframe

HTML Fieldset tag

HTML Form Elements

HTML Form Exercise

HTML Image Map

HTML Div & Span Tag

CSS Float & Clear

HTML Color Codes

HTML Symbols

HTML Assignment

HTML Body Tag

The HTML body tag represents the web page in which the text or images can be displayed. The HTML body tag acts as a container for other HTML tags.
HTML Body tag contains some attributes, Attributes are used to provide some additional information so that HTML elements can work better.

AttributesDescription
Bgcolor*Bgcolor stands for background color. It is use 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*To change the color of active link
Vlink*Change the visited hyperlink color

Note: * - denotes deprecated tag in HTML5

Body attribute: bgcolor

<body bgcolor="lightgreen">
<body bgcolor="#55ff55">

Body attribute: text

<body text="white">

Body attribute: background

<body background="image.jpg">