HTML教程-文字的顏色

來源:互聯網
上載者:User
教程 文字顏色設定格式如下:

   <font color=color_value>…</font>

  這裡的顏色值可以是一個十六進位數(用“#”作為首碼),也可以是以下16種顏色名稱。

Black = "#000000" Green = "#008000"
Silver = "#C0C0C0" Lime = "#00FF00"
Gray = "#808080" Olive = "#808000"
White = "#FFFFFF" Yellow = "#FFFF00"
Maroon = "#800000" Navy = "#000080"
Red = "#FF0000" Blue = "#0000FF"
Purple = "#800080" Teal = "#008080"
Fuchsia = "#FF00FF" Aqua = "#00FFFF"

請看例子:

<HTML>
<HEAD>
<TITLE>文字的顏色</TITLE>
</HEAD>

<BODY BGCOLOR=000080>
<CENTER>
<FONT COLOR=WHITE>色彩斑斕的世界</FONT><BR>
<FONT COLOR=RED>色彩斑斕的世界</FONT> <BR>
<FONT COLOR=#00FFFF>色彩斑斕的世界</FONT><BR>
<FONT COLOR=#FFFF00>色彩斑斕的世界</FONT><BR>
<FONT COLOR=#FFFFFF>色彩斑斕的世界</FONT> <BR>
<FONT COLOR=#00FF00>色彩斑斕的世界</FONT><BR>
<FONT COLOR=#C0C0C0>色彩斑斕的世界</FONT><BR>
</CENTER>
</BODY>

</HTML>



相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.