Ok I had to do this for a friend at college so I thought I would post it here also,
This is the basics ways of making a html site, using notepad as my editor,
HTML reads from left to right, it won’t drop a line when you press enter; you need to use tags to do this,
How tags work, they need to be opened and closed below are the tow tags
<opens the tag >
</ closed tag>
You must always open a tag using < > and close using</> if not then it wont be read right giving you errors,
Text tags,
- Code: Select all
<b> this is bold text </b>
<I> this is Italic text </I>
Command tags,
<br> this is the command for dropping down to the next line on the page, (just like pressing enter)
<hr> this is a line across the page, I remember this by horizontal rule (not its true meaning though )
<p> It does the exact same thing as the <BR> above except this tag skips a line. BR just jumps to the next line, P skips a line before starting the text again.
<html> Tells that the document contains html code, you must use this when making sites, (remember to close this off at the end using </html>)
Linking
Here is the linking system and how it works, this tag is different from all the others as it uses a different open and close tag,
- Code: Select all
<A HREF="http://www.uk-cstrike.net">The best server in the world</A>
^^ this is the open tag, ^^ this is the close tag
http is the command for a webpage, below is the command for a email address
- Code: Select all
<A HREF="mailto:iam@home.com ">Email me</A>
All you will see on the screen is the blue bit, none of the
<A HREF="mailto:iam@home.com "> or the </A>
IMAGES
This is the command for placing images on the page,
- Code: Select all
<IMG SRC="image.gif">
Img= image
Src = source,
Note the 2 “ before and after the location of the image, and the type of image it is .jif or .jpeg this is important or the image wont show,
You can use images to link to places, if you have seen my site, then you will see that my links are pictures, not text
Here is how you do this
- Code: Select all
<A HREF="http://www.uk-cstrike.net"><IMG SRC="ukcs.gif"></A>
It has the reference, the image source and the </A> This would be a linking image,
If you use this you will see that when you mouse over it you will have a small blue (normally) border come up, below is the command to stop that
<IMG BORDER="0" SRC="ukcs.gif">
“0” being the border width,(in pixels)
Images can be manipulated using code, I will show you how,
- Code: Select all
<IMG ALIGN="right" SRC="ukcs.gif">
<IMG ALIGN="center" SRC="ukcs.gif">
<IMG ALIGN="top" SRC="ukcs.gif">
<IMG ALIGN="middle" SRC="ukcs.gif">
<IMG ALIGN="bottom" SRC="ukcs.gif">
You can also define the height and width with commands,
- Code: Select all
<IMG HEIGHT="##" WIDTH="##" SRC="ukcs.gif">
Just replace the ## with the value you want, anoter little tip is to use the *(star) button in place of the #, this makes the image use as much space as avaible,
EG
- Code: Select all
<IMG HEIGHT="*" WIDTH="*" SRC="ukcs.gif">
This image would fill the page, you can also use % to define images
That’s it, this is just the basics, if any one has requests on what to do then, just ask I have a lot of free time over xmas, I aim to learn php then