The Most Active and Friendliest
Affiliate Marketing Community Online!

“Adavice”/  “CPA

learn html - part 2

O

ovi

Guest
how to put color on a webpage

change the color
all that is needed to change the background color of a webpage is to add the bgcolor attribute to the body tag in this example the bgcolor is set to pale blue (hex #0099FF)

<HTML>
<HEAD>
<TITLE>my first web page</TITLE>
</HEAD>
<BODY bgcolor="#0099FF">

This is my very first webpage, aint i clever?

</body>
</HTML>

adding bgcolor to the body tag
the bgcolor can be added as a hex number
<body bgcolor=#0099FF>
or as a named color
<body bgcolor="blue">

change the text color
all that is needed to change the text color of a webpage is to add the text attribute to the body tag in this example the text is set to yellow (hex #FFFF00)

<HTML>
<HEAD>
<TITLE>my first web page</TITLE>
</HEAD>
<BODY bgcolor="#0099FF" text="#FFFF00">

This is my very first webpage, aint i clever?

</body>
</HTML>

add a background image
it's just as simple to add a background image to the webpage all that needs to be done is add the background attribute to the body tag
<body bgcolor=#0099FF text="#FFFF00" background="bluetile.jpg">
 
MI
Back