What are web pages if you cant surf, and how can you surf the Internet with pages with no links. Links allow you to jump from your present location to another page. Without links it would also mean you would probably end up putting heaps of information and graphics on one page, making it not only boring but also slow loading.
- <A HREF="url ">text</A> - Basic Link Tag. By inserting the address (URL) of the page into the HREF part of the tag, and some text in between the <A> and the </A>, when the user clicks on the text, they will 'jump' the the specified address. As with most tags, the link has other 'bits' to it.
- <A HREF="url#name "></A> - Link to Targets. Linking to another section on the same page (about 10 paragraphs down) can sometimes be quite usefull. To link to a 'target' on your page first you have to give the target a name, so that the browser knows what to link to. To give a target a name you use <A NAME="name">. Then using HREF="#name" in the tag, you'll jump to the place where you defined the name. Just using the hash (#) and the section name will only allow you to jump on the same page. By specifying the URL before the #name you can jump to targets on other pages.
- <A .. TARGET="?"> - The Target Widow. You may not always want to link to a page and have it load up over your one. Thats where target location specification comes in handy. By setting the TARGET to "_BLANK", "_SELF", "_PARENT", or "_TOP" the referenced URL will load up in a new window, the current window, the parent window (used with frames), or the last window used respectively.
- <A HREF="url "><IMG></A> - Linking Image. By placing an image between the <A> and the </A> tags of the link will result in the image becoming a link, ie. when you click the image it takes you to the specified page. This is where it might be necessary to set the BORDER of the image to "0" to prevent a blue line from surrounding the image.
Example on Linking: Click Here to see the example
The tags used will be shown in the example
http://www.htmlguide.findhere.com |
Copyright © 1999 Robert Duncan |