ページ全体の背景色を指定する(html)

動作ブラウザ 【 IE:4.0  NN:6.0  Safari:1.0】 ■CSSバージョン【-】
Internet Explorer Netscape Navigator iCab Safari
3.0x 4.0x 4.5 5.0x 5.5 6.0 2.0x 3.0x 4.0x 4.x 6.0 7.0 2.x 1.x
Windows × - × × × - -
Macintosh × - - × × × ×
UNIX - - - - - - × × × - -

ポイント html { background-color:yellow; }
説  明 ページ全体の背景色を指定するにはスタイルの定義でhtmlにbackground-colorでカラー名またはカラーコードを指定します。htmlタグでなくbodyタグで指定するのが一般的です。
サンプル <html>
<head>
<title>ページ全体の背景色を指定する(html)</title>
<style type="text/css"><!--
html { background-color:yellow; }
--></style>
</head>
<body>
Yellowページです。
</body>
</html>
補足説明 なし

■サンプルを実行する >>実行
■各ブラウザでの動作結果を見る >>View!