Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML tag

HTML tag

Example

A simple HTML document with as few required tags as possible:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>

Document title

title

head

<

body

Document content......

body

html

Try it »


Browser support

Internet Explorer Firefox Opera Google Chrome Safari

All major browsers support the tag.


Tag Definition and Usage Notes

The tag defines the body of the document. The element contains all the content of the document (such as text, hyperlinks, images, tables, lists, and so on).

Differences between HTML 4.01 and HTML5

In HTML 5, all "presentational attributes" of the body element have been removed.

In HTML 4.01, all "presentational attributes" of the body element are deprecated.


property

property Value Description
alink color Not supported in HTML5. Deprecated in HTML 4.01. Specifies the color of active links in the document.
background URL Not supported in HTML5. Deprecated in HTML 4.01. Specifies the background image of the document.
bgcolor color Not supported in HTML5. Deprecated in HTML 4.01. Specifies the background color of the document.
link color Not supported in HTML5. Deprecated in HTML 4.01. Specifies the color of unvisited links in the document.
text color Not supported in HTML5. Deprecated in HTML 4.01. Specifies the color of all text in the document.
vlink color Not supported in HTML5. Deprecated in HTML 4.01. Specifies the color of visited links in the document.

Global Attributes

The tag supports [HTML Global Attributes](/tags/ref-standardattributes.html).

Event attribute

The tag supports [HTML Event Attributes](/tags/ref-eventattributes.html).

Related Articles

HTML Tutorial: HTML element

HTML DOM Reference Manual:Body object