Monday, 4 February 2013

How to create Html Links


Links allow you to navigation from one page to another on the internet or in your local machine. Before you add a link to your page you need a URL of another web site or a path of your local file that you want to link to. The link tag also provides the capability to provide a way for linking an e-mail address. To link to another file in your current dictionary, use <A HREF="name.html"> anchor text </A>. For example:
<A HREF="bscInfo.html">Basic Information</A>
If you want to link to a file that in another dictionary, you can write the code like this:
<A HREF="path/name.html">Text</A>
You can create links from your webpage to other webpages on internet:
<A HREF="">Select a GPS</A>
If you want link to the an email address and when you click it, then start the mail program, you can write the a link like this:
<A HREF="">Email us</A>
If a file has a large size, you may want to create links to different parts of the page. To do that, first you must leave a pointer to the place in the file you want to link to. The pointer looks like <A NAME="xyz">. Then use <A HREF="#xyz"> tags. For example, you want to have a link from the section D to the section "My current project" of your page. Right before "My current project" you need to type <A NAME="M">. At the section D of your page you add the following link: <A HREF="#M">. The # symbol tells your browser to look for the link within the same document instead of looking for another file. You can use any number or letter to replace "M":
<A NAME="M"></A>My current projects
<A HREF="#M"></A>Click here to see my projects</A>
You can link to any place in other documents by the same way:
<A HREF="people.html#F3">Faculty Infomation</A>
You also can link a part of another page on the Internet if you can put a pointer <A NAME=""> in it:
<A HREF="http://domain/path/file#F3">

Basic Tags
Character paragraph and positions tags
Styles Tags
Lists Tags
Links Tags
Images Tags

No comments:

Post a Comment