WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML <body> Tag


Example

A basic HTML record, with the base of required tags:

<html>
<head>
<title>Title of the document</title>
</head>

<body>
The substance of the document......
</body>

</html>
Try it yourself »

Definition and Usage

<body> Tags define the body of the document.

<body> Elements contain all the content of the document (such as text, hyperlinks, images, tables, lists, and so on).


Browser Support

Element
<body> Yes Yes Yes Yes Yes Yes

Differences Between HTML 4.01 and HTML5

In HTML 5, the "rendering attributes" for all body elements have been removed.


Attributes

attribute value description
alink color Not supported in HTML5. HTML 4.01 is obsolete. Specifies the color of active links in a document.
background URL Not supported in HTML5. HTML 4.01 is obsolete. Specifies the background image of the document.
bgcolor color Not supported in HTML5. HTML 4.01 is obsolete. Specifies the background color of the document.
link color Not supported in HTML5. HTML 4.01 is obsolete. Specifies the color of unvisited links in the document.
text color Not supported in HTML5. HTML 4.01 is obsolete. Specifies the color of all text in the document.
vlink color Not supported in HTML5. HTML 4.01 is obsolete. Specifies the color of visited links in the document.