
HTML>HTML Links>Anchored Links
The Anchored Link Tag
The anchored link tag, <a> allows you to link to other pages you may have created or to any resource on the Web such as another webpage, an image, a sound file, a movie, etc.
To add a link you use the <a href="location"> opening tag and </a> closing tag.
The <a> tag is used to create an anchor to link, the href attribute is the address of the document to link to. This can be the name of one of your pages or in the case where it is a page on the web, the URL address of the page you wish to browse. This is the address as displayed by your browser.
Whatever appears between the <a> and </a> will become underlined and coloured. If you click on the underlined text it will send the browser to the location within the location quotes.
Example
Try it out for yourself!
Examine the HTML code below. Cut and paste (Ctrl v + Ctrl c) the following HTML code into the form window below and press the check it out button to see the resulting webpage.
<html>
<head><title>Anchored Links</title></head>
<body>
<h2>Links</h2>
<p>So you want to search the web, why not try the<a href="http://www.google.com/">Google</a> search engine!
</body>
</html>
Creating your own webpage
Follow these simple steps to create your own webpage and to view your created webpage in your browser.