I link ipertestuali As relações hipertextos Die Hypertext-Links Les liens hypertextes Hipervínculos

Introduction to anchors

Hypertext links or hyperlinks (anchors) are HTML elements that, when clicked on, enable readers to visit a new address. Hyperlinked text is underlined by default. Hyperlinks are what connect web pages to one another. They are used to travel:

  • to another point in the same document
  • to an HTML file in a different location on the computer which hosts the page
  • to another computer
The primary attribute of anchors is href. It is written this way:
<a href="Address or URL"> .. </a>

External links

An external link is a link to a page indentified by its URL
For example:

<a href="http://en.kioskea.net/">How Does It Work? </a>

Internal links

A link can be made pointing to a page located on the same computer, by replacing the URL with the target file.

This link's location can be defined relatively, by describing the target file in relation to the source file. If the source file is "index.html" located in the parent directory, a link to it will be written:

<a href="../index.html"> ... </a>

This link may also be defined absolutely, by locally writing the address of the target file:

<a href="file:///drive:/folder/index.html"> ... </a>

Skip links

It is also possible to create a link to a spot within a page; in other words, to mark a precise spot on the page where the hyperlink will take the reader. Skip links are defined with the NAME or ID attribute. The following syntax should be used wherever you want the target to be:

<a name="internal_link"> ... </a>

This is how to link to that location:

<a href="#internal_link"> ... </a>

With these tags, you can enable the user to move up or down within the same page, or access a specific section on another page:

<a href="url/file_name.html#internal_link"> ... </a>


Last update on Thursday October 16, 2008 02:43:14 PM.This document entitled « Hyperlinks » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.
Best answers for « Hyperlinks » in :
How to turn a URL into a hyperlink Show How to turn a URL into a hyperlink If you are using PHP, there is a simple way to turn a URL into a hyperlink when inserting the address into your PHP document. This process is mostly used to ease the users' search of external websites or...
Converting a URL to a clickable hyperlink Show Converting a URL to a clickable hyperlink With regular expressions, it is possible to transform any hyperlink URL of the form http://URL (or ftp://URL) or beginning with www. :
[PowerPoint] Exporting PPT in PDF via hyperlinks Show [PowerPoint] Exporting PPT in PDF via hyperlinks Here's how to export a PPT to PDF while keeping all the clickable links. 1.Start OpenOffice Impress 2.Open your file. PPT or. PPS 3.Go to File> Export as PDF
How to remove Hyperlink on copied text from website? ShowHow to remove Hyperlink on copied text from website? When copying information on website, obviously the hyperlink from the text will also appear on the edited text. To remove the hyperlink from the text, you need to right on the designated...
Inserting an Hyperlink in an Excel Worksheet ShowCreating an Hyperlink in an Excel Worksheet Introduction Implementation Linking to a Website Linking to a document Linking to another cell in the spreadsheet Notes Introduction Excel supports the use of hyperlinks and it is a very...
Remove the underline under the links in HTML/CSS ShowRemove the underline under the links in HTML/CSS Using CSS Using CSS via a class Using CSS online AS you may have noticed, hyperlinks are underlined in HTML (by default) It is possible to remove the underline by using the CSS Using...
Download WhizFolders Organizer Pro ShowWhizFolders Organizer Pro is a manager of information. It can insert hyperlinks in your notes, organize, conduct drag and drop and automatically collect data via the clipboard. The software is a shareware version which expire after 15 days of use. ...
Download Note PP ShowDo you need a program to store your notes? Note PP allows you to store them in a single location. You can create as many notes as you like and add to them any type of information either hyperlink, phone books, to-do lists or catalogs, etc. Your...