Posted : Friday, 16th August 2008 By html_tag
Internet hypertext links, technically known as have the Uniform Resource Locator (URL) is one of the fundamental features of the world wide web. Hypertext links can be used for a multitude of purposes. Links embedded in two web based documents allow the user to access text and multimedia Internet resources.
HTML links are defined in the source code of web documents using the <A HREF> tag, HREF is an abbreviation of Hyertext Reference. The text embedded into his tag provides the hypertext link to another web document or Internet resource.
<A HREF=”http://www.checkopenports.com”>Check Open Ports Website</A>
Looking at this example we can see that the link is pointing to a web page called “Check Open Ports Website”.
Breaking this example hypertext link up, firstly we can see the first tag is <A HREF=”http://www.checkopenports.com”>. This defines the start of hypertext link and sets the link two point two http://www.checkopenports.com. The next part “Check Open Ports Website” is what the user will see when they are looking at the web document. Finally the last tag </A> closes the hypertext link.
When a web browser shows an hypertext reference it will highlight the text shown between the link tags. As default this will usually mean the web browser will show the hypertext link in a different colour and underlined. However, it is possible for the designer of the web document to modify this default procedure so this may not always be the case.
Absolute or Relative Pathnames
When creating links on your own web document to other pages it is important to consider where the web document is stored. Links to web documents can be defined as relative or absolute. Relative links are ones that will point only to web documents stored within the same directory. Absolute links give the exact location of the web document.
An example of a relative link :
<A HREF=”page2.html”>Page 2</A>
An example of an absolute link:
<A HREF=”/manual/html/hypertext/page2.html”>Page 2</A>