HTML Help Section
So, you want to learn some basic HTML? I created this little section of
the site to help beginners get a basic know-how of how HTML works. Gradually as
you get better you're learn more things and be able to make your own codes.
First things first.
This is what your page should look like before you add anything to it in
notepad:
This is called a basic shell. If you use this on a website you'll simply get a
blank page.
You don't have to space everything like I have, but it's neater and you find
things with less difficulty.
You'll notice all codes have "tags" such as '<head>', which open and close. To
open a tag you use something like this: '<head>'
And to close the tag you just add "/" before it, like so: '</head>'
There are four tags:
"<html>" tells the page you've begun your webpage.
"<head>" is where you place your 'headings' such as title, .css files,
javascripts, etc.
"<title>" obviously for the title of your website that appears at the top of the
browser.
"<body>" this is where the content of your page that you can see goes.
All tags must be both started and closed to work.
Now we'll add some things to the page:
This is the starter page most people learn in their first e-website class. It's
called Hello World.
All I've done is name my page, 'My Page', and add 'Hello world' to the body
section.
Now I want to make the word 'world' red. This is how I do it:
Notice the change? I made the colour change tag open, then I closed it where I
wanted it to finish.
Now you know how to do the basic shell of a website and where things go. Let's
explore some of the body tag options...
Changing
your
font
colour.
This is the code we use to make text a different colour. For this
example, I'll use red:
The above code will look like this:
Hello!
The font colour is changed using the letter and number code in the HTML. In this
example it was #FF0000, which is red.
Your text goes in between the start (your font colour) and where you
want it to end. If this is a little confusing just look at where I
have placed "Hello!" in the above example.
Some Colour Codes:
Black: #000000
White: #FFFFFF
Red: #FF0000 #C00000
#E88A8A
Yellow: #FFFF00 #FFFFC0
Green: #008000 #00C000
#80FF80
Blue: #0000C0 #4040FF
#DCDDFC
Purple: #800080 #D81CDA
Pink: #FF40FF #FF80FF
#FFC0FF
Brown: #AB4F4F #D6A6A6
Bold Text
Bold text is very easy to do, and is exactly the same as italic
and underlined. You use the following code:
And it will come out like this:
This is Bold Text
The goes before the text you want bolded, and goes after it.
Italics and Underlined are the same thing except instead of they are as
follows:
Italic:
Underlined:
Coloured Text Background
Want to change the background colour of your text? Here's how using blue
as an example:
Blue Text Background
Here we've used a colour code again. Simply change the #0000FF to your
desired colour.
Next Line/Break
This is the most used and import HTML. How to make a break in your text!
It goes like this:
Line 1
Line 2
All it requires it putting in
after you're finished with that particular line to move on to the next
one.
Next
Paragraph
This is not a code I use at all since I'm a fan of forming another paragraph, but if you want to do it the quick
way its as follows:
Paragraph 1
Paragraph 2
Background Colour
This is another colour code, and as an example we'll use a lightish blue, colour code #C2C7FF.
And that is what makes a page colour light blue. Simply change
the colour to suit your background needs.
Creating A Text Link
This is easily done with the following code using Zetapets as an example:
Visit
Zetapets today!
The URL link goes just before the text you want to link, and remember to
put after it or it will link the rest of your entire page!
Moving Text
A lot of people won't tell you how to get this will they? Nasty people!
:o
Lucky for you I will :)
The marquee behaviour makes the text move so don't change
anything in this code except for where I've put "Moving Text".
Images
Now that you've mastered text, lets move on to images.
This is how we put an image on our site. We'll use a Rainbow Egg
as an example, which I've put on my server:
And it will look like this:

The only part of the code you have to change is the image URL. The
Rainbow Egg is located at:
http://zetaonline.fateback.com/egg3.gif
See where that is in the code? It's in "quotation marks". Do not remove
the quotation marks when changing an image URL or it will not work. Only
change the URL.
Want to make the picture more appealing? Try this border:
Now the image looks better, yes? And all that has been added to the code
is border="1" to give it a 1pt line border. If you want a bigger border
just increase the number higher than 1, such as 5, which will make it
look like this:
Linking Images
We'll stick with the Rainbow Egg for this. And I'm going to link it
to Zetapets.com. So this is the code I need:
And it will look like this:
The first part of the code is the URL you want to link your image to. In
this case its:
http://www.zetapets.com/
The second part is what we've just covered, the image URL. Make sure to
include after this code or your URL will expand to cover everything
after the image as well!
I don't really like the blue border, do you? Lets get ride of it by
using this code instead:
A simple border="0" gets ride of a border. That makes sense.
Background Image
We'll use this image of a Chick Toy as an example:
http://zetaonline.fateback.com/chicktoy.gif
That will show this image as a tiled
background on the page. It will only be tiled because it's a small image
though. A bigger image, depending on size, may take up the whole page.

Fixed Background Image
To keep the image in the same place and not move when a person
scrolls simply add this little bit extra to the end of the code:
bgproperties="fixed"
And that's the end of my Beginners HTML section! Hope I could provide
you with some help :)