Lesson 4 - Images & Links

IMAGES & LINKS - SECTION 2

    Links make up and important portion of your homepage. It's even more important if your homepage contains more than 5 pages. This section will teach you how make a link within your pages and with other websites. Links are defined by this tag <a href></a>. Remember! Each and every HTML document that you're going to link have to be in the same directory. For example, we will make a link to the HTML Help main page from this one here :

<a href="help.html">Click Here</a>

    Voila! Just click on the words 'Click Here' to go the main page :
Click Here

    If you're going to link pages within different directories, be sure to include every sub-directory. Remember! Links are also case-sensitive.

<a href="/Main/Section/Document/file.html">Here</a>

    To link to other websites from yours, you would only have to insert 'http://' within the <a href></a> tags. Like this :

<a href="http://www.kuanyew.com">Kuan Yew</a>

    Besides linking pages, the <a href> tag could also be use to link to your e-mail address. Like this :

<a href="mailto:kuan_yew@yahoo.com">Kuan Yew</a>

    To use an image as a link, just insert this line of HTML :

<a href="me.html"><img src="me.gif"></a>

    That's all for this section, continue with Section 1. Click here to get to Lesson 5 : Frames.


This Page Is Published And Maintained By Wong Kuan Yew
Copyright © 2000 Wong Kuan Yew. All Rights Reserved.
Last Updated: