Producing web pages
* HTML CSS DHTML XHTML A to Z of tags        Accessibility          Design

Linking to an external web page

To create a link to another website, enclose the text or picture in the <a> tag (anchor tag) and set the href attribute to the destination address. For example:

Visit <a href="http://www.annhome.com/">Ann’s Web site</a> 
for more information

The text between the <a> and </a> tags is used as a caption for the link. You usually see this in blue and underlined.

To link to a page on another web site, you need to give the full web address (the URL). You should include the double quotation marks around the URL.

Always add a trailing slash to subfolder references. If you link like this: href="http://www.mysite.com/html", you'll generate two HTTP requests to the server, because the server will add a slash to the address and create a new request like this: href="http://www.mysite.com/html/"

If you want, you could use a graphic instead of text for the link. For more details about how to do this, see Making a picture a link.