Body> tag in html example
- use of body tag in html
- use of body tag in html5
- importance of body tag in html
- explain the use of body tag in html
Attributes of body> tag in html with example!
HTML body Tag
The <body> tag in HTML is used to define the main content present inside an HTML page. It is always enclosed within <HTML> tag.
How many attributes of body> tag
The <body> tag is the last child of the <html> tag.
- The tag contains all the contents of an HTML document, such as headings, images, hyperlinks, tables, lists, paragraphs, etc.
- The <body> tag is required in HTML documents.
- If omitted, the browser assumes its presence.
Syntax
<body> Body Contents...</body>
Attributes
There are many attributes in the <body> tag that are depreciated from HTML5 are listed below:
Attribute Values | Description |
---|---|
background | It contains the URL of the background image. It is used to set the background image. |
bgcolor | It is used to specify the background color of an image. |
alink | It is used to specify the color of the active link. |
link | It is used to specify the color of visited links. |
text | It specifies the color of the text in a document. |
vlink | It specifi
|