code.progysm.com

Balise XHTML link

Description

Description:
Permet de lier une référence au document (par exemple, une feuille de style).
Position (absolue):
À l'intérieur de <head>

Attributs

  id          ID             #IMPLIED
  class       CDATA          #IMPLIED
  style       %StyleSheet;   #IMPLIED
  title       %Text;         #IMPLIED
  lang        %LanguageCode; #IMPLIED
  xml:lang    %LanguageCode; #IMPLIED
  dir         (ltr|rtl)      #IMPLIED
  onclick     %Script;       #IMPLIED
  ondblclick  %Script;       #IMPLIED
  onmousedown %Script;       #IMPLIED
  onmouseup   %Script;       #IMPLIED
  onmouseover %Script;       #IMPLIED
  onmousemove %Script;       #IMPLIED
  onmouseout  %Script;       #IMPLIED
  onkeypress  %Script;       #IMPLIED
  onkeydown   %Script;       #IMPLIED
  onkeyup     %Script;       #IMPLIED

  charset     %Charset;      #IMPLIED
  href        %URI;          #IMPLIED
  hreflang    %LanguageCode; #IMPLIED
  type        %ContentType;  #IMPLIED
  rel         %LinkTypes;    #IMPLIED
  rev         %LinkTypes;    #IMPLIED
  media       %MediaDesc;    #IMPLIED
  
XHTML 1.0 Transitional seulement:
  target      %FrameTarget;  #IMPLIED

Exemple

Exemple complet:
    <link rel="StyleSheet" type="text/css" href="style.css" />
    
    <link rel="Alternate StyleSheet" type="text/css" href="style2.css" />

    <link rel="SHORTCUT ICON" href="http://www.mondomaine.com/monicon.ico" />

    <link rel="microsummary" href="somegeneratorortextfile.xml" />
    See: http://www.geckozone.org/articles/2007/09/26/130-utiliser-les-titres-dynamiques-ou-microresumes-avec-mozilla-firefox
         http://wiki.mozilla.org/Microsummaries
         http://developer.mozilla.org/fr/docs/Création_d'un_générateur_de_microrésumé

Note

Note:
  Relationship values can be used in principle:

   a) for document specific toolbars/menus when used
      with the link element in document head e.g.
        start, contents, previous, next, index, end, help
   b) to link to a separate style sheet (rel="stylesheet")
   c) to make a link to a script (rel="script")
   d) by stylesheets to control how collections of
      html nodes are rendered into printed documents
   e) to make a link to a printable version of this document
      e.g. a PostScript or PDF version (rel="alternate" media="print")

Imbrication XHTML 1.0 Strict

Peut être imbriquée à l'intérieur de:
head
Peut imbriquer: