The <body> Tag

The <body> tag in HTML 5

<body> Tag Syntax

Syntax of the <body> tag

Attributes of the <body> Tag

Attributes of the <body> tag

attribute
The attribute
common attributes
In addition to the attributes above, which are specific to the <body> tag, any of the common HTML attributes can also be used.
HTML 5 Examples

Examples of the body tag in HTML 5


Changes in HTML 5

What's new in HTML 5

Differences between HTML 5 and earlier versions

The following attributes should not be coded on the <body> tag because they either have been deprecated or were never officially supported:

  • alink
  • background
  • bgcolor
  • bgproperties
  • bordercolor
  • bordercolordark
  • bordercolorlight
  • leftmargin
  • link
  • rightmargin
  • text
  • vlink

Last updated Saturday September 12, 2009


Printer-friendly PDF* format:

HTML <body> Tag

You are currently viewing this page in XHTML 1 Style Sheet* format (* see Clicklets for more infomation). This document is also available in XHTML 1*XML*HTML 4*HTML 5 Style Sheet*HTML 5 XML*HTML 5 non-XML* XHTML 2* XHTML Mobile* WML Mobile* and printer-friendly PDF* formats. This is accomplished with Single Source Publishing, a content management system that uses templates in XSLT style sheets provided by XML Styles .com to transform the source content for various content delivery channels. There is also RDF* metadata that describes the content of this document.