Easy HTML tutorial

HTML TUTORIAL


Lesson 3:Colours

Colors are added using RGB values.

This stands for Red - Green - Blue

he first two digits representing Red the middle two - Green, and the last two - Blue

#FFFFFF = WHITE

#000000 =BLACK

#FF0000 =RED

#00FF00 =GREEN

#0000FF =BLUE

You can use any digits from 0 - 9 then the letters A - F

Try them out to get different shades

To change the color of text you use the <FONT></FONT> tags.

You write it like this <FONT COLOR="#FF0000"></FONT>

Here is your new code

<HTML>

<HEAD>

<TITLE>My Cool Web Page</TITLE>

</HEAD>

<BODY>

<CENTER><H1>My Cool Web Page</H1></CENTER>

<HR>

<P> <FONT COLOR="#FF0000">Welcome to my cool web page which I made with the help of The EASY HTML tutorial</FONT>.</P>

<P>Check out my favourite site, <A HREF="http://www.ireland.com">Irish Times</A></P>

</BODY>

</HTML>

You can also change the background colour using the same system.

Simply add BGCOLOR to the <BODY></BODY> tags like this

<BODY BGCOLOR="#0000FF">

To change the font face you add FACE to the font tags

<FONT COLOR="#FF0000" FACE="HIPHOPDEMI,ELEPHANT"></FONT>

you can use any fonts you want

 

<HTML>

<HEAD>

<TITLE>My Cool Web Page</TITLE>

</HEAD>

<BODY BGCOLOR="#00FF00">

<CENTER><H1><FONT COLOR="#FF0000" FACE="HIPHOPDEMI,ELEPHANT">My Cool Web Page</FONT></H1></CENTER>

<HR>

<P> <FONT COLOR="#FF0000">Welcome to my cool web page which I made with the help of The EASY HTML tutorial</FONT>.</P>

<P>Check out my favourite site, <A HREF="http://www.ireland.com">Irish Times</A></P>

</BODY>

</HTML>

Save the page as COOLPAGE.HTML

 

HOME Tutorial Next Lesson Previous Lesson