Example Page 3

 

Open the HTML file you saved in Example Page 2 in your text editor (If you followed the instructions in Example Page 2 the file name should be index.html). In the section More HTML tags; colors and fonts were discussed, so let's add some color to our page and change that boring font. I chose the color green (#008000) and my font is Times New Roman. I, however, felt like splashing out a little, so I faded my message text paragraph from a light green to a dark green, but if you don't want to be that adventurous you can make it all one color. That was how I did my welcome message. The fading I did by breaking my message text up into small parts and then setting the color for each part individually. Note however, that there are programs out there that will do this for you, but if you don't have such a program you will have to do it manually, which can be very time consuming, but hey, the effect still looks great. One such program is Color Fazer, and you can download it for free at this address: http://home.europa.com/~rc/cfazer/download.html. Color Fazer will generate the code for you, so you just have to cut and paste it in your document.

This is what your code should look like:

<HTML>
<HEAD>
<TITLE>The Green Tentacle Homepage</TITLE>
</HEAD>
<BODY>
<H3 ALIGN="CENTER"><FONT COLOR="#008000">Welcome to the Green Tentacle Homepage</FONT></H3>
<P ALIGN="CENTER">
<FONT FACE="Times New Roman">
<FONT COLOR="#00BF00">A high sc</FONT><FONT COLOR="#00BE00">hool student thin</FONT>
<FONT COLOR="#00BD00">ks, &quot;When I'm ou</FONT><FONT COLOR="#00BC00">t of school and d</FONT>
<FONT COLOR="#00BB00">on't have to do w</FONT><FONT COLOR="#00BA00">hat I am told, th</FONT>
<FONT COLOR="#00B900">en everything wi</FONT><FONT COLOR="#00B800">ll be great!&quot; He </FONT>
<FONT COLOR="#00B700">leaves school and</FONT><FONT COLOR="#00B600"> suddenly recogn</FONT>
<FONT COLOR="#00B500">izes that he won'</FONT><FONT COLOR="#00B400">t be happy until </FONT>
<FONT COLOR="#00B300">he leaves home. H</FONT><FONT COLOR="#00B200">e leaves home an</FONT>
<FONT COLOR="#00B100">d starts universi</FONT><FONT COLOR="#00B000">ty and soon decid</FONT>
<FONT COLOR="#00AF00">es, &quot;When I have </FONT><FONT COLOR="#00AE00">got my degree, t</FONT>
<FONT COLOR="#00AD00">hen I'll be reall</FONT><FONT COLOR="#00AC00">y happy!&quot; Eventua</FONT>
<FONT COLOR="#00AB00">lly he gets his </FONT><FONT COLOR="#00AA00">degree at which t</FONT>
<FONT COLOR="#00A900">ime he realizes t</FONT><FONT COLOR="#00A800">hat he can't be h</FONT>
<FONT COLOR="#00A700">appy until he ha</FONT><FONT COLOR="#00A600">s a job. He gets </FONT>
<FONT COLOR="#00A500">his job and has t</FONT><FONT COLOR="#00A400">o start at the bo</FONT>
<FONT COLOR="#00A300">ttom of the heap</FONT><FONT COLOR="#00A200">. You guessed it!</FONT>
<FONT COLOR="#00A100"> He can't be happ</FONT><FONT COLOR="#00A000">y yet. As the yea</FONT>
<FONT COLOR="#009F00">rs roll by, he p</FONT><FONT COLOR="#009E00">ostpones his happ</FONT>
<FONT COLOR="#009D00">iness and peace o</FONT><FONT COLOR="#009C00">f mind until he </FONT>
<FONT COLOR="#009B00">gets engaged, get</FONT><FONT COLOR="#009A00">s married, starts</FONT>
<FONT COLOR="#009900"> buying a home, g</FONT><FONT COLOR="#009800">ets a better job</FONT>
<FONT COLOR="#009700">, starts a family</FONT><FONT COLOR="#009600">, gets the kids i</FONT>
<FONT COLOR="#009500">n school, owns hi</FONT><FONT COLOR="#009400">s home, gets the</FONT>
<FONT COLOR="#009300"> kids out of scho</FONT><FONT COLOR="#009200">ol, retires... an</FONT>
<FONT COLOR="#009100">d he drops dead </FONT><FONT COLOR="#009000">before he allows </FONT>
<FONT COLOR="#008F00">himself to be bli</FONT><FONT COLOR="#008E00">ssfully happy. Al</FONT>
<FONT COLOR="#008D00">l his present mo</FONT><FONT COLOR="#008C00">ments were spent </FONT>
<FONT COLOR="#008B00">planning for a wo</FONT><FONT COLOR="#008A00">nderful future wh</FONT>
<FONT COLOR="#008900">ich never arrive</FONT><FONT COLOR="#008800">d. Moral of the s</FONT>
<FONT COLOR="#008700">tory? Live each d</FONT><FONT COLOR="#008600">ay to the fulles</FONT>
<FONT COLOR="#008500">t. Don't postpone</FONT><FONT COLOR="#008400"> your happiness t</FONT>
<FONT COLOR="#008300">o tomorrow... the</FONT><FONT COLOR="#008200">re may not be an</FONT>
<FONT COLOR="#008100">other tomorrow to</FONT><FONT COLOR="#008000"> enjoy.</FONT>
</FONT>
</P>
</BODY>
</HTML>
screen.gif (1270 bytes) Click here to see what the output of the above code would look like. To come back to this page when you've finished looking at the result, close the new window it opened in.

Remember to save your file (index.html).

 

[Return to Tutorial]

Introduction | Basic Tags | More HTML Tags | List Tags | Adding Graphics | Creating Links | Adding Forms | Adding Tables
Creating Frames | Multimedia | Uploading Files | Downloads | Questions & Answers | Useful Links | e-mail Me
 
Example Page 1 | Example Page 2 | Example Page 3 | Example Page 4 | Example Page 5 | Example Page 6
Example Page 7 | Example Page 8 | Example Page 9 | Example Page 10
 
Color Chart | HTML Tester
bar.gif (1848 bytes)
Copyright1999 - 2000 Green Tentacle. All rights reserved. This tutorial is protected by SA and international copyright laws.
Hosted by www.Geocities.ws

1