Create a website RSS feed

Basic Links

Basic Links

Last update on: 05-08-2008
In order to get started with links, you should see one basic example. Once you know the basics of linking, there is still a lot more to learn, but this one example will get you a long way.

A link is specified using the </a> element. Anything between the opening </a> tag and the closing </a> tag becomes part of the link a user can click in a browser. The following sections discuss linking to other documents and to e-mail addresses.

Linking to Other Documents

To link to another document, the opening <a> tag must carry an attribute called href, whose value is the page you are linking to.


Link to another website

If you want to link to a different site, you can use the following syntax, where you specify a full URL to the page you want to link to rather than just the filename.


It is also good practice to use the title attribute on a link, as this will be displayed in a tooltip (a little bubble that appears stating the title) in most visual browsers when the user hovers over the link. This can help the visually impaired if they use a voice browser.
The value of the title attribute should be a description of what the link will take you to.



hypertext links's lessons:

Basic Links
Linking To E-mail Addresses
Destination Anchor

Banner HomeServices Contact |  ©2009 http://www.iteachweb.net/