|
Links are an integral part of the World Wide Web. Really, links are the World Wide Web. The Web is
a web of links and navigation aids for use on the internet. There are several ways to make links
(or hyperlinks) to other websites. In this tutorial we will look at some ways to make links.
Here is a basic hyperlink: <a href="http://williambryan.com">My Main Page</a>
The part that says My Main Page is the label. This is the visible part that is displayed
on the web page. You can use whatever you want for the label, even sentences.
The part between the quotation marks, "http://williambryan.com" is the page that will be called
and displayed, when you click on the link.
Here is the above link as it appears on this web page:
My Main Page .
They call the above link an absolute url, because it gives the entire url path. Now suppose
there is another web page in the main directory of my website, that I want to link to. Let's
call it picture.html. The link would look like this:
<a href="http://williambryan.com/picture.html">My Picture Page</a>
This is the absolute url to the my picture page.
Here is the above link as it appears on this web page:
My Picture Page .
You might be thinking that the above url sure is long. And your right! Unless you are linking to
another website, you can use a relative url. If the web pages are located in the same directory,
you can use a relative url. Unless you have created a monster site with more than one directory
your web pages will be located in the same directory. Here is an example of a link that uses a
relative url:
<a href="picture.html">My Picture Page</a>
Is that short enough for ya? If you are using one of the following free web page makers, you
can copy and paste the code above in the paragraph or code spaces.
Web Page Maker 2
Web Page Maker 1
If you are lazy, like me, you can use my free Text Link Maker:
Free Text Link Maker
Hang around for the next tutorial, and learn how to make a link with a picture.
Next - Make A Link With A Pic
William Bryan Boyd is the author of several online webmaster tutorials featured at
http://williambryan.com.
He is the developer of the popular,
Web Page Maker 2, a free web
page maker with many great features.
WEBMASTERS: THIS TUTORIAL MAY BE DISTRIBUTED FREELY, IF THE AUTHORS BOX IS INCLUDED IN EVERY
COPY.
|