How to add a link to your HTML website

Learning how to construct a website for the first time might be a challenge, but once you have the process figured out you’ll likely be building away. Eventually it’ll be helpful to know how to link your separate static Web pages together — or even how to provide links on your site to one or more of your friends’. Here’s a brief overview on how to add Web page links to your HTML website.

Adding a link to a website is as easy as adding a new heading or paragraph. Inside the page’s body content, insert the HTML opening tag for a link:

<a href="insert Web address here“>

In HTML, <a> tags are used for anchors, HTML tags that are used to denote links. Anchor tags are used before both text that will be a clickable link on a page and the text (maybe even on the same page) to which the link will take you. The <a href=" "> tag is the opening tag used to create a link to a seperate Web page. Links to different sections of a single site call for the use of a different tag.

Once you have placed in your opening tag, copy and paste the URL of the site to which you want to link into the area between the quotation marks. (This spot is indicated by the italicized type in the above format for the link tag.) Be sure the Web address between the quotation marks ends in a forward slash:

Write, "; rather than, ";

Your opening tag is complete. Next, directly after the opening tag, type the text that will appear on your Web page as the hyperlink. This is the text that, when you click on it, will take you to the website specified by the URL in the opening anchor tag.

<a href=""&gt;This is the clickable link.

And close the line with a closing tag.

<a href=””&gt;This is the clickable link.</a>

The final product should appear like this:

This is the clickable link.

Save your HTML document, and you should have your link all set up. Be sure to visit your own Web page and try the link out for yourself to make sure it’s fully functional.



~ by cathybutchy on September 6, 2011.

One Response to “How to add a link to your HTML website”

  1. informative and clearly states and outlines in the title and body text what the blog is about

Comments are closed.

%d bloggers like this: