English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Der HTML <body>-Tag definiert das Hauptinhalt der HTML-Dokumente oder -Dokumentteile, die direkt auf Ihrer Webseite sichtbar sind. Dieser Tag wird auch oft als <body>-Element bezeichnet.
Ein einfaches HTML-Dokument, das so wenig wie möglich erforderliche Tags enthält:
!DOCTYPE html <html> <head> <meta charset="utf-8"> <title>Dokumenttitel</title> </head> <body> Inhaltsbereich des Dokuments...... </body> </html>Testen Sie es heraus ‹/›
IEFirefoxOperaChromeSafari
Alle gängigen Browser unterstützen den <body>-Tag.
Der <body>-Tag definiert den Hauptteil des Dokuments.
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 In, all body elements' 'presentation attributes' have been removed.
In HTML 4.01 In, all body elements' 'presentation attributes' are deprecated.
Attribute | Value | Description |
---|---|---|
alink | color | HTML5 Not Supported. HTML 4.01 Deprecated. Specifies the color of active links in the document. |
background | URL | HTML5 Not Supported. HTML 4.01 Deprecated. Specifies the background image of the document. |
bgcolor | color | HTML5 Not Supported. HTML 4.01 Deprecated. Specifies the background color of the document. |
link | color | HTML5 Not Supported. HTML 4.01 Deprecated. Specifies the color of unvisited links in the document. |
text | color | HTML5 Not Supported. HTML 4.01 Deprecated. Specifies the color of all text in the document. |
vlink | color | HTML5 Not Supported. HTML 4.01 Deprecated. Specifies the color of visited links in the document. |
<body> Tag Supported Global Attributes of HTML.
<body> Tag Supported HTML Event Attributes.
HTML Tutorial: HTML Elements
HTML DOM Reference Manual:Body Object