![]() |
|
![]() |
|
![]() |
|
![]() |
Step 5 : Creating Links Lets take a look at how we can create links to external pages, a mailto link and links within a document. What is a Hyperlink? A Hyperlink is a link or connection from one document to another, or to any resource, or within a document. The hyperlinked text is highlighted in some fashion. The default is usually blue, underlined text, but your display may vary. From now on whenever we refer to links we are refering to Hyperlinks. Creating a link using the <A HREF=></A> Anchor tags. Let's make a link to Rediff. First add the text for the links.
Go to Rediff! Then add a pair of anchor tags.
And then finally add the URL with the HREF option. URL Stands for Universal Resource Locator. It is the address of the site you want to link to. In this case it is http://www.rediff.com
Go to Rediff! You now have a link to the Rediff website on your page. Similiarly you can have links to any site you like as long as you know the URL (address). Creating a mailto using the <A HREF></A> Anchor tags. The mailto link is used to give a link to an e-mail address. On clicking the link the browser opens a compose mail window with the mailto address. Lets create a simple mailto link to homepages@rediff.co.in
Here we replace the URL with mailto:emailaddress. The above example creates a mailto link to homepages@rediff.co.in. To see how it works click on the link below. Creating a link within the document using the <A NAME=></A> tags. To create a link within a document we follow two steps.
Now that we have marked the place in the document we create a link to it.
Clicking on this link will take you to the part of the document where we have previously marked. Note that you can also link to a section of another external document.
This link takes you to the 'THIS PLACE' mark within 'document.html'.
|
![]() |
|
Broadband | Chat | Contest | Movies | E-cards | Weather | Travel | | Romance | Astrology | Shopping Money | Instant Messenger | Auctions | Auto | Education | Jobs | TechJobs | Women | Technology |
|
![]() Disclaimer © 2000 rediff.com India Limited. All Rights Reserved. |