Short URL: http://html5.org/r/3790
| SVN | Bug | Comment | Time (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><!DOCTYPE html>
+<html lang="en-US">
+ <head>
+ <title>My favorite book</title>
+ <style>
+ body { color: black; background: white; }
+ em { font-style: normal; color: red; }
+ </style>
+ </head>
+ <body>
+ <p>My <em>favorite</em> book of all time has <em>got</em> to be
+ <cite>A Cat's Life</cite>. It is a book by P. Rahmel that talks
+ about the <i lang="la">Felis Catus</i> in modern human society.</p>
+ </body>
+</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