This page contains the following link elements. Not all links go to real pages.

  1. Basic test: <link rel="alternate" lang="fr" xml:lang="fr" title="fr, Déclaration universelle des droits de l'homme" type="text/html" hreflang="fr" href="http://www.unhchr.ch/udhr/lang/frn.htm" />

  2. Same URI, but different title: <link rel="alternate" title="fr2, Déclaration universelle des droits de l'homme" type="text/html" hreflang="fr" href="http://www.unhchr.ch/udhr/lang/frn.htm" lang="fr" xml:lang="fr"/>

  3. Use of subtags: <link rel="alternate" title="fr-CH, Déclaration universelle des droits de l'homme" type="text/html" hreflang="fr-CH" href="http://www.unhchr.ch/udhr/lang/frnCH.htm" lang="fr-CH" xml:lang="fr-CH"/>

  4. Same title: <link rel="alternate" title="Declaración Universal de Derechos Humanos" type="text/html" hreflang="es" href="http://www.unhchr.ch/udhr/lang/spn.htm" lang="es" xml:lang="es"/>

  5. <link rel="alternate" title="Declaración Universal de Derechos Humanos" type="text/html" hreflang="es" href="http://www.unhchr.ch/udhr/lang/spn2.htm" lang="es" xml:lang="es"/>

  6. Unrecognized hreflang: <link rel="alternate" title="qwertyuiop asdfghjkl zxcvbnm" type="text/html" hreflang="zz" href="http://example.org/zz.html" lang="zz" xml:lang="zz"/>

  7. No hreflang: <link rel="alternate" title="世界人権宣言" type="text/html" href="http://www.unhchr.ch/udhr/lang/jpn.htm" lang="ja" xml:lang="ja"/>

  8. Same hreflang as language of current page: <link rel="alternate" title="Universal Declaration of Human Rights" type="text/html" hreflang="en" href="http://www.unhchr.ch/udhr/lang/eng.htm"/>

  9. Right to left text: <link title="الإعلان العالمي لحقوق الإنسان" type="text/html" rel="alternate" hreflang="ar" href="http://www.unhchr.ch/udhr/lang/arz.htm" lang="ar" xml:lang="ar"/>

Does the user agent provide a means of viewing the information in the links as part of the user interface?
Does the user agent provide information about all the links in the markup?
Does the user agent display the information in the title attribute?
Does the user agent display the information in the hreflang attribute?
If there is no hreflang attribute, is there a difference in the way the link is handled?
Does the user agent correctly handle the Arabic? (You will need an Arabic font and rendering support for this test.)

Version: $Id: sec-link.html,v 1.7 2004/11/04 20:53:39 rishida Exp $