HTML uses a hyperlink to link one document with the another.
Anchor Tag
<a> - Defines an anchor
Anchor tag (<a>) is used to create a link to another document. An anchor can point to a file like an image, an HTML page, a movie, an audio file etc.
Syntax :-
<a href="url of the file">Text </a>
The <a> tag define an anchor to link from, the href attribute define the document to link to, and the text between the anchor tag will be displayed as a hyperlink.
For Example :-
<a href="http://www.dotnetheaven.com/">dotnetheaven</a>
Linking within same page
The name attribute is used to create a named anchor. When using named anchors we can create links that can move directly into a specific section on a page.
To link to a specific section in a page, you have to use the syntax :-
<a name="name_of_section"></a>
name_of_section should be unique on the page. To link to that section from within the same document, use the anchor tag:
<a href="#name_of_section">Text</a>
Add #name_of_section to the end of the url of the page to link this section with another page i.e. http://server_name/path/filename.html#name_of_section.
Linking with images
Images can be linked the same as text. To link an image, place the Image (img) tag between the anchor tags.
For example :-
<a href="http://www.dotnetheaven.com/"><img src="dnhlogo.gif" width="100" height="50" ></a>
Creating a mailto link
A mailto: anchor links text or an image to an e-mail address. This tag will automatically load an e-mail program and address a message to "user@mcnsolutions.net".
Syntax :-
<a href ="mailto:mailid">text</a>
Examples :-
<a href="mailto:user@mcnsolutions.net"> Mail to User </a>
you can also specify the subject to be used in that email.
<a href="mailto:user@mcnsolutions.net?subject=News Letter"> Mail to User </a>