You are here:  NetStrider » Tutorials » HTMLRef » Commands » LINK «

HTML Reference Guide

Author: Randy D. Ralph.   In place March 1, 1999.   Copyright © 1999 NetStrider.   Presented as a public service.

BACK <LINK> Command next

Command Syntax:

<LINK command parameters>

The <LINK> commands indicate some sort of relationship between the HTML Document and some other document or object.  They are most typically used to associate the current HTML Document with an author's information page, indexes, glossaries, older versions, alternate versions, forward and backward links, etc., or to point to external style sheets.

They produce no visible display within the HTML Document, but their use can -

  • improve the performance of a browser viewing the site.
  • inform the Internet about associated documents or objects.
These commands are used only within the HTML Document <HEAD> Segment.

See also:  <META>

Command Parameters:
href="URL"

This parameter is used to declare the location of the linked object or document.


hreflang="language code"

This parameter is used to declare the language of the associated document using the international standard two-letter code.

See the table of ISO 639 standard language codes.


rel="relationship"

This parameter is used to specify the type of relationship between the document and the linked object or document.


title="object or document title"

This parameter is used to declare the title of the associated or linked object or document.


type="object or document type"

This parameter is used to declare the type of the associated object or document.

Example:
<HEAD> <TITLE>Two Clans from Stad aan't Haringvliet</TITLE> <LINK title="Twee Geslachten van Stad aan't Haringvliet" type="text/html" rel="alternate" hreflang="nl" href="../../../familytree/plokhooy.html" tppabs="http://www.netstrider.com/familytree/plokhooy.html"> </HEAD>

Within the HTML Document Head Segment:  These commands declare the title of the current document and provide an association or link to the Dutch version of the document.  The link element declares -

  • the Dutch title (Twee Geslachten. . .)
  • the document type (text/html)
  • the relationship (alternate) to the current document
  • the language (nl - Dutch)
  • the URL of the associated document (http://www.netstrider. . .)

Return to Section I:L


Return to the List of Commands
Author: Randy D. Ralph.  In place March 1, 1999.  Copyright © 1999 NetStrider.  World Rights reserved.




Hosted by uCoz