HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/3787

File a bug

SVNBugCommentTime (UTC)
3787<link> examples2009-09-10 09:10
Index: source
===================================================================
--- source	(revision 3786)
+++ source	(revision 3787)
@@ -11206,9 +11206,43 @@
   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">

|