The <LINK> tag is designed to define a relationship between documents. It may only appear in the <HEAD> section. You may have as many as you desire. Its job is to give information which various user agents (browsers and robots) may use. For example, one <LINK> attribute defines an icon to be used in favorites, and this is used by Internet Explorer and Mozilla.
charset = characterset | |||||||||||||||||||||||||||||
| Specifies the character encoding of the resource indicated by HREF. | |||||||||||||||||||||||||||||
| dir=direction | |||||||||||||||||||||||||||||
| Indicates the language of the text in the <LINK>. | |||||||||||||||||||||||||||||
href = url | |||||||||||||||||||||||||||||
| The location of the resource. | |||||||||||||||||||||||||||||
hreflang = "lang" | |||||||||||||||||||||||||||||
| The language of the linked page. | |||||||||||||||||||||||||||||
id = "name" | |||||||||||||||||||||||||||||
| You can give an LINK a name, which allows it to be referenced and changed in a script (dynamic HTML). | |||||||||||||||||||||||||||||
| lang="lang" | |||||||||||||||||||||||||||||
| Indicates the language of the text within the <LINK>. | |||||||||||||||||||||||||||||
Media | |||||||||||||||||||||||||||||
| Indicates an alternate media associated with the document. | |||||||||||||||||||||||||||||
rel = "type" | |||||||||||||||||||||||||||||
| Link forward of the current page. The value "type" can be one of the following:
Indicates how to measure the units.
| |||||||||||||||||||||||||||||
rev = "type" | |||||||||||||||||||||||||||||
| Link behind of the current page. This would be corresponding to "prev". | |||||||||||||||||||||||||||||
target = "targetwindow" | |||||||||||||||||||||||||||||
| This attribute loads the document indicated by HREF into the window as indicated by "targetwindow". | |||||||||||||||||||||||||||||
<HEAD> <TITLE>Chapter 2</TITLE> <LINK rel="Index" href="http://www.internet-tips.net/index.asp"> <LINK rel="Next" href="Chapter3.html"> <LINK rel="Prev" href="Chapter1.html"> </HEAD> |
Defines the "index", "next" and "prev" documents. (Example borrowed from W3C HTML 4.01 specification)
<LINK title="The manual in Dutch"
type="text/html"
rel="alternate"
hreflang="nl"
href="http://someplace.com/manual/dutch.html">
<LINK title="The manual in Portuguese"
type="text/html"
rel="alternate"
hreflang="pt"
href="http://someplace.com/manual/portuguese.html">
<LINK title="The manual in Arabic"
type="text/html"
rel="alternate"
charset="ISO-8859-6"
hreflang="ar"
href="http://someplace.com/manual/arabic.html">
<LINK lang="fr" title="La documentation en Français"
type="text/html"
rel="alternate"
hreflang="fr"
href="http://someplace.com/manual/french.html">
|
Defines the "index", "next" and "prev" documents. (Example borrowed from W3C HTML 4.01 specification)
Unless otherwise noted, all photos and text is Copyright © Richard G Lowe, Jr.