Flux rss
Bookmark Bookmark & Share
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.
Converting a URL to a clickable hyperlink 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. : en.kioskea.net/faq/sujet-2158-converting-a-url-to-a-clickable-hyperlink
How to turn a URL into a hyperlink 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... en.kioskea.net/faq/sujet-643-how-to-turn-a-url-into-a-hyperlink
How to remove Hyperlink on copied text from website? How 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... en.kioskea.net/faq/sujet-320-how-to-remove-hyperlink-on-copied-text-from-website
[PowerPoint] Exporting PPT in PDF via hyperlinks[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 en.kioskea.net/faq/sujet-1164-powerpoint-exporting-ppt-in-pdf-via-hyperlinks
Unable to open links under ThunderbirdUnable to open links under Thunderbird Solutions Under Mozilla Thunderbird, it may happen that you cannot open hypertext links. Solutions Launch Internet Explorer and set the browser as default. If Internet Explorer refuse to set... en.kioskea.net/faq/sujet-1145-unable-to-open-links-under-thunderbird
Javascript - Link Random / Choose a random linkJavascript - Link Random / Choose a random link The script below creates a hyperlink directing the visitor to an address chosen at random from a list. The code below is to be inserted between the tag and to... en.kioskea.net/faq/sujet-1833-javascript-link-random-choose-a-random-link
Hyperlink problem !!! URGENT!!!!Hello, I have a problem with hyperlinks in my excel table. I created hyperlinks to pdf files but when I try to open the hyperlink it just flashes the pdf, like it would open it and then dissapears. I have office 2003. When I transfer the folder with... en.kioskea.net/forum/affich-29164-hyperlink-problem-urgent
Outlook 2003 / hyperlinksWhen I click on a hyperlink in Outlook 2003, nothing happens at all. What could be the problem and how can i fix it? en.kioskea.net/forum/affich-22715-outlook-2003-hyperlinks
Back mapping hyperlinksHello, I am creating a Reference Guide for my co-workers. I have a list of various subjects hyperlinked to PDF files in a corresponding "library" (50 PDF files) within the same folder. Some hyperlinked subjects are repeated under several topics. So... en.kioskea.net/forum/affich-89126-back-mapping-hyperlinks
Download WhizFolders Organizer ProWhizFolders 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. ... en.kioskea.net/telecharger/telecharger-1568-whizfolders-organizer-pro
Download Quick Notes PlusQuick Notes Plus is a post-it software. It allows to create electronic notes which will be placed on the desktop of Windows. The notes can contain text, hyperlinks to a website or an e-mail address and images. Moreover, it pposes a programmable alarm.... en.kioskea.net/telecharger/telecharger-2795-quick-notes-plus
URLWhat is a URL? A URL (Uniform Resource Locator) is a universal naming format used to indicate a resource on the Internet. It is a printable ASCII character string which breaks down into five parts: The name of the protocol: i.e. in a way the... en.kioskea.net/contents/internet/url.php3