15. ่
โครงการอบรมเพื่อการสงเสริ มและพัฒนาการใช้ ICT
ณ ศูนย์การเรี ยนรู้ ICT ชุมชน
http://www.mict4u.net
ี ้ ื่ ี
กําหนดสพืนหลังจากชอสมาตรฐาน
ี ้
<BODY BGColor = "สพืนหลัง">
....
</BODY>
ี ้
กําหนดสพืนหลังจากเลขฐาน 16
<BODY BGColor = "#RRGGBB">
....
</BODY>
ตัวอย่างที ่ 11 bgcolor.html
<HTML>
<HEAD><TITLE> BGColor </TITLE></HEAD>
<!-- BODY BGColor="Yellow" -->
<BODY BGColor="#FFFF00">
The Internet is a collection of information stored in computers physically located
throughout the world.<BR>
Much of the information on the Internet is organized onto electronic pages. You'll bring
one page to your computer screen, discover its contents, and have the option of
bringing more pages of information.
</BODY>
</HTML>
การกําหนดสีให้กบตัวอักษรทังเอกสาร
ั ้
การกําหนดสีให้กบตัวอักษรทังเว็บเพจเราสามารถทําได้จากแท็ก <BODY> โดยกําหนดจาก Attributes
ั ้
"Text" โดยมีรปแบบดังนี้
ู
ี ้ ื่ ี
กําหนดสพืนหลังจากชอสมาตรฐาน
ี ้
<BODY Text = "สพืนหลัง">
....
</BODY>
ี ้
กําหนดสพืนหลังจากเลขฐาน 16
<BODY Text = "#RRGGBB">
....
</BODY>
ตัวอย่างที ่ 12 body_text.html
<HTML>
<HEAD><TITLE> Heading </TITLE></HEAD>
<!-- BODY Text="Red" -->
<BODY Text="#FF0000">
The Internet is a collection of information stored in computers physically located
throughout the world.<BR>
Much of the information on the Internet is organized onto electronic pages. You'll bring
one page to your computer screen, discover its contents, and have the option of
bringing more pages of information.
</BODY>
</HTML>
กระทรวงเทคโนโลยีสารสนเทศและการสือสาร
่ 15