©Mark Cooper/Corbis
© Mark Cooper/CORBIS

Links

External links

External links link to other pages like this:
<a href="http://www.yahoo.com">yahoo</a>

Internal links

To create a link from one part of an HTML document to another part in the same document, you have to mark the location to which you want to jump. You need to label it by using the id attribute:
<a id="someLabel" ></a>
Link    There is an <a href="#bottom">Link</a> tag here.

This attribute marks the location by specifying an identifying name. Once the label exists , you can link to it with a normal <a href> tag (but with one key difference). Instead of assigning a URL for the value of the href tag, you need to put a # sign followed by the name of the label:
<a href="#somelabel">Interdum</a> 
The # signifies that this is not an external link, but a link to a local label defined in the source document.

Images

To link an image:
<a href="#statue_of_liberty"><img src="images/image.jpg" 
alt="" width="72" height="134" 
class="leftside"/></a> 



There is an <a id="bottom"></a> tag here.Back
Links