HTML Standard Tracker


File a bug

SVNBugCommentTime (UTC)
3790<style> example.2009-09-10 09:39
@@ -12273,20 +12273,46 @@ people expect to have work and what is necessary.
   <p>The DOM <dfn
   title="dom-style-disabled"><code>disabled</code></dfn> attribute
   behaves as defined <span title="dom-linkstyle-disabled">for the
   alternative style sheets DOM</span>.</p>
   <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>The following document has its emphasis styled as bright red
+   text rather than italics text, while leaving titles of works and
+   latin words in their default italics. It shows how using
+   appropriate elements enables easier restyling of documents.</p>
+   <pre>&lt;!DOCTYPE html>
+&lt;html lang="en-US">
+ &lt;head>
+  &lt;title>My favorite book&lt;/title>
+  &lt;style>
+   body { color: black; background: white; }
+   em { font-style: normal; color: red; }
+  &lt;/style>
+ &lt;/head>
+ &lt;body>
+  &lt;p>My &lt;em>favorite&lt;/em> book of all time has &lt;em>got&lt;/em> to be
+  &lt;cite>A Cat's Life&lt;/cite>. It is a book by P. Rahmel that talks
+  about the &lt;i lang="la">Felis Catus&lt;/i> in modern human society.&lt;/p>
+ &lt;/body>
+  </div>
   <h4 id="styling"><dfn title="styling processing model">Styling</dfn></h4>
   <p>The <code>link</code> and <code>style</code> elements can provide
   styling information for the user agent to use when rendering the
   document. The DOM Styling specification specifies what styling
   information is to be used by the user agent and how it is to be
   used. <a href="#refsCSSOM">[CSSOM]</a></p>