MAKING LINKS


Making a link isn't just a some text where you click and other page will load. There are lot of diffrent ways and styles of using links. You can make a link to the top or bottom of the same page. You can also use your image as a link so when some body clicks on your image it will load the page you want. Not only that, Also you can make a link to open in new window or diffrent frame. Here is how you can make links to diffrent page or diffrent parts of your page:

Here is simple code of HTML to make a simple link to Yahoo.
<A HREF="http://www.yahoo.com/">Click here to search in yahoo</a>

Here is what we just did:
Click here to search by yahoo

If you want to use a image as your link's text here is how you can do that:

<A HREF="http://www.yahoo.com"><IMG SRC="http://www.netmatrix.net/~grewal/images/myimage.jpg"></A>

Here is your image as a link. Click on the image to go to yahoo.com:



You can also make a link to the top of other page. This is very usefull some time useually if someone have already visited that page. By doing this your page will always load from the top. If you don't use it like this your page will load from the History folder of your visitor and it could load from middle or bottom of the page. Here is the HTML tags you will need to use:
<A HREF="http://www.yahoo.com" target="_top">Yahoo</A>

You can also make a link where you visitor can just click and send you E-mail. It will open your visitor's E-mail software and your E-mail address will be already there. Here is how you can do that:

<A HREF="Mailto:[email protected]">E-mail Me</A>

Here is what we have just done. Click on the E-mail me link and it will open your E-mail software with my E-mail address in it.
E-mail Me


You can also make a link to top of same page. It is very usefull if you have a very lont page. Here are the tags:

<A HREF="#top">Back to top</A>
Here is what we have just done. Click on the Back to top link and it will take you to the top of this page:
Back to top

Here is the best part of making a link to diffrent part on the same page. If you click on the link below it will take you to the heading of this page. Clcik here to go to heading of the page.
Here is how I did that:
I named my heading as a heading like this:
<A NAME="heading">MY heading here</A>. Then I made a link to it like this:
<A HREF="#heading">Click Here</A>


You can also load your page into diffrent frame by using these target tags. All you have to do is name your frame something and make a target to it and your page will load in that frame. Here is HTML code for it:
<A HREF="http://www.yahoo.com" TARGET="leftframe">Your text</A>. Click here for information on how to use frames.


HOME