Lemmy's HTML Guide

So, you want to know how to do a link? Links are very important; you'll need them to reach all the pages of your site, as well as to reach other peoples' pages. To follow along in an actual web page, go to my practice  page (http:// members.tripod.com/~lemmykoopa/lkmainl.htm) in another browser window. Click the page with your right mouse button, and click view source on the menu that appears. Maximize the new window, and you'll see what the page is made of. Now count the lines - blank lines don't count as they do not effect the page - and go to lines 80 and 81.

There are two types of links. The first is a page link, and the second is an Email link. Both will be explained.

<A HREF="http://members.tripod.com/~Crazed85/cartoons.html"> This creates a page link, in this case to Super Mario Headquarters. To set the link, all you do is write "<A HREF=" and then the full URL of the page you are linking to. Remember that the link must be exact to work. The link goes in quotes.

After you type the link, simply write out like regular text that you want to carry the link. I wrote the site's name, but you could write anything.

</A> This closes the link. You probably don't want your entire page to carry the link, so after you write the linked text, simply put in this. All text placed afterwards will not carry the link.

Congratulations, you have just done a link! Now I will show you a slight variation. Go to lines 115 and 116.

<A HREF="lkmainsecret.html"> This is another link, you know because of the "A HREF". However, I have not written the entire URL, but it does work. If you are linking to a file in the same folder as the file you are editing or in a sub folder, this works. Both my main page and the linked page have the same URL root- http://www.lemmykoopa.com/. Since they're in the same folder, this works. However, <A HREF="cartoons.html"> (from above link) would not be a correct link to the Super Mario Headquarters, since it is in a different folder. And by the way, sometimes you can find interesting things if you study page sources.

Okay, let's go do an Email link so the world can send you stuff. It's really easy. Go back to lines 107 and 108.
<A HREF="mailto:lemmykoopa@lemmykoopa.com"> This is a link. Again, you know because of the "A HREF". It happens to be an Email link. The difference is that you stick in "mailto:", and then you put in the Email addie you want linked. It gets closed the same way as a regular link, </A>, but it does not open a page.

Now you can place links wherever you want. You can even link to pictures, just put the A HREF before the picture code and the </A> after the picture, and you got a linked picture. Try it out, and good luck!

Go back to Lemmy's HTML Guide.

Go back to Lemmy's Land.