Share this Page URL

Chapter 5. Making the Jump to Hyperspace... > Getting Hyper: Creating Links in HTM... - Pg. 54

Making the Jump to Hyperspace: Adding Links 54 Getting Hyper: Creating Links in HTML Okay, with that drivel out of the way, it's time to put your newfound know-how to work (assuming, that is, I haven't scarred you for life!). To wit, this section shows you how to use HTML to add links to your web page. The HTML tags that do the link thing are <A> and </A>. (Why "A"? Well, as you'll find out later on --see the section "Anchors Aweigh: Internal Links"--you can create special links called anchors that send your readers to other parts of the same document instead of to a different document.) The <A> tag is a little different from the other tags you've seen (you just knew it would be). Specifically, you don't use it by itself but, instead, you shoehorn the URL of your link into it. Here's how it works: <A HREF="URL"> Here, HREF stands for Hypertext Reference. Just replace URL with the actual URL of the Web page you want to use for the link (and, yes, you have to enclose the address in quotation marks). Here's an example: <A HREF=""> Now you can see why I made you suffer through all that URL poppycock earlier: It's crucial for getting the <A> tag to work properly. You're not done yet, though, not by a long shot (insert groan of disappointment here). What are you missing? Right, you have to give the reader some descriptive link text to click. Happily, that's easier done than said because all you do is insert the text between the <A> and </A> tags, like so: <A HREF="URL">Link text goes here</A>