Html-body-tag

提供:Dev Guides
移動先:案内検索

HTML-<body>タグ

説明

HTML <body>タグは、HTMLドキュメントのメインコンテンツセクションを示すために使用されます。

<!DOCTYPE html>
<html>

   <head>
      <title>HTML body Tag</title>
   </head>

   <body>
      Body of the document...
   </body>

</html>

これは、次の結果を生成します-

グローバル属性

このタグは、リンク:/html/html_attributes_reference [HTML属性リファレンス]で説明されているすべてのグローバル属性をサポートします

特定の属性

HTML <body>タグは、次の追加属性もサポートしています-

Attribute Value Description
alink rgb(x,x,x) #xxxxxx colorname Deprecated − Specifies the color of the active links in the document.
background URL Deprecated − Specifies the background image file path.
bgcolor rgb(x,x,x) #xxxxxx colorname Deprecated − Specifies the background color.
link rgb(x,x,x) #xxxxxx colorname Deprecated − Specifies the color of all the links in the document.
text rgb(x,x,x) #xxxxxx colorname Deprecated − Specifies the color of the text in the document.
vlink rgb(x,x,x) #xxxxxx colorname Deprecated − Specifies the color of the visited links in the document.

イベント属性

このタグは、link//html/html_events_reference [* HTMLイベントリファレンス*]で説明されているすべてのイベント属性をサポートしています。

ブラウザのサポート

Chrome Firefox IE Opera Safari Android
Yes Yes Yes Yes Yes Yes