css_multiple_class.html 453 B

123456789101112131415161718
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <style>
  6. .a { font-style: italic; }
  7. .b { font-weight: bold; }
  8. .c { color: red; }
  9. </style>
  10. </head>
  11. <body>
  12. <p class="a">class="a"</p>
  13. <p class="b">class="b"</p>
  14. <p class="c">class="c"</p>
  15. <p class="a b">class="a b"</p>
  16. <p class="a b c">class="a b c"</p>
  17. </body>
  18. </html>