HTML Standard Tracker

Diff (omit for latest revision)
Filter

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

File a bug

SVNBugCommentTime (UTC)
3790<style> example.2009-09-10 09:39
Index: source
===================================================================
--- source	(revision 3789)
+++ source	(revision 3790)
@@ -12280,8 +12280,34 @@
   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>
+&lt;/html></pre>
+
+  </div>
+
+
+
+
   <h4 id="styling"><dfn title="styling processing model">Styling</dfn></h4>
 
   <p>The <code>link</code> and <code>style</code> elements can provide

|