Answering a ton of email every day allows me to keep an eye on
when the new batch of HTML writers come into the fold. The questions I receive always
become more and more difficult, and then all of a sudden...they become much simpler. The new
group of people has arrived.
What's more, in my constant want to write tutorials on new and
more difficult topics, I forget to create more beginning-level tutorials. In that vein, I
offer this tutorial.
You've probably already read through
Primer Four - Creating Links. If not - give it a once over pretty
soon. It'll give you the basic format of a link. Now let's talk about the pages you'll
link to.
First off, let's attach to a page outside of your site.
Here's the basic format:
Note the address above is a full URL. ("URL" stands for Universal
Resource Locator. It's a fancy way of saying "web address") It starts with that
http thing and ends with that .com deal. It's a full address.
Now let's look at what I
call an internal link. This is a link that stays within your own site.
One of your pages is calling for another one of your pages.
We'll say this is a link
from your homepage.html to links.html. Remember that from above? Here's the format:
<A HREF="links.html">Click Here</A>
Notice I'm only calling for the page, without the full address
attached. Why? Well, because I don't need it. To make the point a little stronger, let's
look at the directory structure of web addresses.
Think of a directory structure as one item being inside of a
larger item. For example, a word is inside of sentence, is inside of a paragraph, is inside
of a page, is inside of a chapter, is inside of a book. If this were written in
directory structure format, it would look like this:
Book/chapter/page/paragraph/sentence/word
It gets smaller as you move to the
right, each is inside the previous. Take this URL for example:
http://www.server.com/users/pages/ohio/joe.html
In that URL, the page "joe.html" is inside a directory called
Ohio, is inside a directory called pages, is inside a directory called users, is on a
server called server.com.
That's why the page homepage.html is at the end of the address
above. Make sense?
Add htmlgoodies.com to your favorites Add htmlgoodies.com to your browser search box IE 7 | Firefox 2.0 | Firefox 1.5.xReceive news via our XML/RSS feed