HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
3787<link> examples2009-09-10 09:10
@@ -11199,20 +11199,54 @@ gave me some of the songs they wrote. I love sharing my music.&lt;/p>
   title="dom-link-disabled">disabled</code> attribute behaves as
   defined <span title="dom-linkstyle-disabled">for the alternative
   style sheets DOM</span>. For all other <code>link</code> elements it
   always return false and does nothing on setting.</p> <!-- that is
   normatively required in the definition of dom-linkstyle-disabled -->
 
   <p>The <code>LinkStyle</code> interface is also implemented by
   this element; the <span>styling processing model</span> defines
   how. <a href="#refsCSSOM">[CSSOM]</a></p>
 
+  <div class="example">
+
+   <p>Here, a set of <code>link</code> elements provide some style
+   sheets:</p>
+
+   <pre>&lt;!-- a persistent style sheet -->
+&lt;link rel="stylesheet" href="default.css">
+
+&lt;!-- the preferred alternate style sheet -->
+&lt;link rel="stylesheet" href="green.css" href="Green styles">
+
+&lt;!-- some alternate style sheets -->
+&lt;link rel="alternate stylesheet" href="contrast.css" href="High contrast">
+&lt;link rel="alternate stylesheet" href="big.css" href="Big fonts">
+&lt;link rel="alternate stylesheet" href="wide.css" href="Wide screen"></pre>
+
+  </div>
+
+  <div class="example">
+
+   <p>The following example shows how you can specify versions of the
+   page that use alternative formats, are aimed at other languages,
+   and that are intended for other media:</p>
+
+   <pre>&lt;link rel=alternate href="/en/html" hreflang=en type=text/html title="English HTML">
+&lt;link rel=alternate href="/fr/html" hreflang=fr type=text/html title="French HTML">
+&lt;link rel=alternate href="/en/html" hreflang=en type=text/html media=print title="English HTML (for printing)">
+&lt;link rel=alternate href="/fr/html" hreflang=fr type=text/html media=print title="French HTML (for printing)">
+&lt;link rel=alternate href="/en/html" hreflang=en type=application/pdf title="English PDF">
+&lt;link rel=alternate href="/fr/html" hreflang=fr type=application/pdf title="French PDF"></pre>
+
+  </div>
+
+
 
 
 
   <h4 id="meta">The <dfn><code>meta</code></dfn> element</h4>
 
   <dl class="element">
    <dt>Categories</dt>
    <dd><span>Metadata content</span>.</dd>
    <dd>If the <code title="attr-itemprop">itemprop</code> attribute is present: <span>flow content</span>.</dd>
    <dd>If the <code title="attr-itemprop">itemprop</code> attribute is present: <span>phrasing content</span>.</dd>

|