News:

GinGly.com - Used by 85,000 Members - SMS Backed up 7,35,000 - Contacts Stored  28,850 !!

Main Menu

HTML Hyperlink

Started by VelMurugan, Apr 30, 2009, 08:39 PM

Previous topic - Next topic

VelMurugan

HTML Hyperlink

<a>

The essence of an HTML document lies in the first two words: (H)yper(T)ext. In other words, it is the ability to link to other documents that makes HTML unique. How do HTML documents link to other documents? It does so via the <a> tag. The attributes for the <a> tag are href and name. Below we show an example for each:

Example 1: Link to an external document.


HTML:
<a href="www.itacumens.com">This link</a> takes you to a document called "sample.html."

Display:
This link takes you to a document called "sample.html."

Example 2: Link to an anchor within the same document.

HTML:
<a href="http://velu.itacumens.com">This link</a> takes you to a pre-determined location on the same page.

Display:
This link takes to a you to a pre-determined location on the same page.

Note that you may also link to an anchor within an external document.

denniscrrom

Links are found in nearly all Web pages. Links allow users to click their way from page to page. HTML hyperlink / HTML links come in two forms: Local links, and Foreign links. The tag used to create an HTML link is the <A> or Anchor tag.

mikerock

hyper link found on each and every website or webpage. Hyperlinks are created with an "href" (hyperlink reference) tag.  Mainly there are two types of hyperlink absolute and relative.
Relative hyper link further divided into tow category
A.  document-relative
Ex. <a href="page1.html">Page 1</a>

B. site-root-relative

ex - <a href="/main-directory/directory4/page4.html">Page 4</a>