<body> tag in HTML

The <body> tag is used to defines the document's body in HTML. The body element contains all the contents of an HTML document, for example - paragraph, heading, hyperlinks, images, tables, lists, etc.

Important Description

  • Open and close tag required of <body>.
  • The <body> tag is the second element in an <html> element.

Syntax Example of <body> tag

<body> Tag Browser Support

Element Chrome Edge Firefox Safari Opera
<body> Yes Yes Yes Yes Yes

Global Attributes

Event Attributes


All layout attributes are removed in HTML5 for example listed below:

Attribute Value Description
alink color Defines the color of an active links in a document
background URL Defines a background image forr a document
bgcolor color Defines the background color of a document
link color Defines the color of unvisited links in a document
text color Defines the color of the text in a document
vlink color Defines the color of visited links in a document

Advertise With Us

We offer sponsored posts and guest posts with do-follow links, back-links, and other advertising services, To advertise email us at ""

© 2021 GDATAMART.COM (All Rights Reserved)