<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

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

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

© 2023 GDATAMART.COM (All Rights Reserved)