HTML Tutorials
How to Link Your Web Page To Your Favorite Web Site
Back to Home Page Back to HTML Tutorials Home Page
Back to HTML Codes and Questions
Hyperlinks are unique to the web. Hyperlinking to other documents is the most important capability of HTML.
How to Create a Hyperlink
One of my favorite sites on the web is www.htmlgoodies.com. If I wanted to create a link from my page to htmlgoodies.com, I would write the following code:
<A HREF = "http://www.htmlgoodies.com"> click here </A>
This is what it all means:
<A HREF = The "A" stands for anchor. When sailors "set the anchor", they are throwing the anchor into the water so the ship will rest at a certain location. Here we are setting the location of the hyperlink. The "HREF" stands for hypertext reference.
"http://www.htmlgoodies.com"> This is the complete web address of where I want to link. It must be complete, spelled correctly and it must have the quotation marks before and after. This is especially true if the link is to a web page that is not a part of your web site.
click here This is what the viewers of your web page will see. The HTML code will cause these words to be blue and underlined. The viewers will not see http://www.htmlgoodies.com.
</A> This tells the computer that here is the end of the anchor and hyperlink.
Here is how the code would look on the web page.
<HTML>
<HEAD>
</HEAD>
<BODY>
<A HREF = "http://www.htmlgoodies.com"> click here </A>
/BODY>
</HTML>