English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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.
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 <‹/›
IEFirefoxOperaChromeSafari
All mainstream browsers support the <body> tag.
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.
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à | Valore | Descrizione |
---|---|---|
alink | colore | HTML5 non supporta. HTML 4.01 è obsoleto. Specificare il colore dei link attivi nel documento. |
background | URL | HTML5 non supporta. HTML 4.01 è obsoleto. Specificare l'immagine di sfondo del documento. |
bgcolor | colore | HTML5 non supporta. HTML 4.01 è obsoleto. Specifica il colore di sfondo del documento. |
link | colore | HTML5 non supporta. HTML 4.01 è obsoleto. Specifica il colore dei link non visitati nel documento. |
text | colore | HTML5 non supporta. HTML 4.01 è obsoleto. Specifica il colore di tutti i testi nel documento. |
vlink | colore | HTML5 non supporta. HTML 4.01 è obsoleto. Specifica il colore dei link visitati nel documento. |
Supporto <body> etichetta Proprietà globali HTML.
Supporto <body> etichetta Proprietà degli eventi HTML.
Tutorial HTML: Elementi HTML
Manuale di riferimento HTML DOM:Oggetto Body