2014年11月11日火曜日

文字の色指定

●文字の色指定
<html>
<head>
<title></title>
</head>
<body>

<font color="red">1、赤色</font><br>

<font color="blue">2、青色</font><br>

<font color="#ff0000">3、赤色</font><br>

<font color="#0000ff">4、青色</font><br>

<font color="green" size="5">5、フォントサイズが5で緑色</font><br>

<font color="green" size="-1">6、フォントサイズが-標準1で緑色</font>

</body>
</html>



●ページ全体の文字色を指定する場合には、
<html>
<head>
</head>
<body style="color: red;">
ページの文字が赤
</body>
</html>


<html>
<head>
</head>
<body style="color: rgb(255, 0, 0);">
ページの文字が赤
</body>
</html>



●ページ全体の文字やリンクの色設定
<html>
<head>
<title></title>
</head>
<body
style="color: rgb(255, 0, 0); background-color: rgb(152,251,152);"
alink="#ff0000" link="#0000ff" vlink="##800000">
ページ全体の文字やリンクの色設定
</body>
</html>