English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML reference manual

Complete list of HTML tags

Tag HTML: <body>

The HTML <body> tag defines the main content of an HTML document or part of an HTML document, which will be visible directly on your web page. This tag is also commonly referred to as the <body> element.

Online examples

A simple HTML document containing the minimum necessary tags:

!DOCTYPE html
<html>
<head>
<meta charset="utf-8">
<title>Document title</title>
</head>
 
<body>
Document content......
</body>
 
</html>
Test to see <‹/›

Browser compatibility

IEFirefoxOperaChromeSafari

All mainstream browsers support the <body> tag.

Definition and usage instructions of tags

The <body> tag defines the main content of the document.

The HTML <body> element is located within the <html> tag.
The most common elements in the HTML <body> tag are: <h1>, <p>, <div>, and <table> tags.

Differences between HTML 4.01 and HTML5

In HTML 5, all the "presentation attributes" of the body elements have been removed.

In HTML 4.01, tutte le proprietà 'presenta' degli elementi body sono obsolete.

Proprietà

ProprietàValoreDescrizione
alinkcoloreHTML5 non supporta. HTML 4.01 è obsoleto.    Specificare il colore dei link attivi nel documento.
backgroundURLHTML5 non supporta. HTML 4.01 è obsoleto. Specificare l'immagine di sfondo del documento.
bgcolorcoloreHTML5 non supporta. HTML 4.01 è obsoleto. Specifica il colore di sfondo del documento.
linkcoloreHTML5 non supporta. HTML 4.01 è obsoleto. Specifica il colore dei link non visitati nel documento.
textcoloreHTML5 non supporta. HTML 4.01 è obsoleto. Specifica il colore di tutti i testi nel documento.
vlinkcoloreHTML5 non supporta. HTML 4.01 è obsoleto. Specifica il colore dei link visitati nel documento.

Proprietà globali

Supporto <body> etichetta Proprietà globali HTML.

Proprietà degli eventi

Supporto <body> etichetta Proprietà degli eventi HTML.

Articoli correlati

Tutorial HTML: Elementi HTML

Manuale di riferimento HTML DOM:Oggetto Body