Example Page 5
Now we get to the fun part, adding a background and
pictures. Open the HTML file you saved in Example Page 3 in your
text editor (If you followed the instructions in Example Page 3
the file name should be index.html). I have decided to go with a dungeon
theme for my personal home page. Decide on a theme for your page and save all the images
to the same directory you have saved your HTML document in. If you are not the artistic
type then go to the following web page: Moyra's Jewel
Mines, this is great page with loads of backgrounds and images to download
and use for free. This is my background, feel free to use it if you want, to save it, just
right click on the picture and select "save image..."
from the popup menu.

I have also created a logo for my web page and I'm going to
use it as my title.

And the final touch is an animated GIF image of a flame
with an image of a torch underneath it. To get the flame to display correctly on the torch
you have to center both the images on the page. As you can see the images below do not
quite fit over each other, that is because the flame image is smaller in width than the
torch.

And this is what your code should look like:
- <HTML>
- <HEAD>
- <TITLE>The Green Tentacle
Homepage</TITLE>
- </HEAD>
- <BODY BACKGROUND="bricks.jpg">
- <H3 ALIGN="CENTER"><FONT
COLOR="#008000">Welcome to the Green Tentacle Homepage</FONT></H3>
- <P ALIGN="CENTER"><IMG
SRC="title.jpg" WIDTH="250" HEIGHT="82"
ALT="The Tentacle Homepage"></P>
- <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,
"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!" 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,
"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!" 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>
- <P ALIGN="center">
- <IMG SRC="fire.gif" WIDTH="30"
HEIGHT="52"><BR>
- <IMG SRC="torch.gif" WIDTH="50"
HEIGHT="82"></P>
- </BODY>
- </HTML>
 |
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. |
Don't forget to save your file (index.html).
I have also added the background to my about page. Open the
HTML file you saved in Example Page 4 in your text editor (If
you followed the instructions in Example Page 4 the file name
should be about.html). Using my normal background I have had to change
the color of my text, since the black doesn't show very well on my dark background, so I
have changed my text color to a light green.
And this is what your code should look like:
- <HTML>
- <HEAD>
- <TITLE>The Green Tentacle
Homepage</TITLE>
- </HEAD>
- <BODY BACKGROUND="bricks.jpg">
- <FONT FACE="Times
New Roman" COLOR="#80FF80">Hi,
my name is Green Tentacle and I live in sunny South Africa. And as the infamous thoughts
of Pinky while Brain is talking: "Blah blah blaaah, blah blah, big word, blah
blaaah". You get the idea, right?
- <BR><BR>
- My hobbies include:
- <UL>
- <LI>Movies
- <LI>Computer games
- <LI>Reading
- </UL>
- </FONT>
- </BODY>
- </HTML>
 |
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. |
[Return to Tutorial]
-
-
- Copyright � 1999 - 2000 Green Tentacle. All rights reserved. This tutorial is protected by SA and international copyright laws.