Style Sheets Guide
=Example: Document Level Style Sheets=

Main Index | Style Sheet Index | Top Of Tree | Tag Index | Tag History
Example | Analysis


Example
  1.       <html>
  2.       <head>
  3.              <title>Document Title</title>
  4.       <style TYPE="text/css">
  5.       <--
  6.       body {
                     background: black;
                     color: #80c0c0 }
  7.       a:link { color: #ff8080 }
  8.       a:visited { color: #ff0000 }
  9.       a:active { color: #a05050 }
  10.       a.case1:link { background: green }
  11.       p.first-line { margin-left: 25px }
  12.       div.foo.first-line {
                     font-weight: bold;
                     margin-left: 30px }
  13.       div.first-letter {
                     font-size: x-large;
                     color: #ffffff }
  14.       ul ul li {
                     font-size: x-large;
                     font-decoration: italic }
  15.       h2 em { font-weight: 900 }
  16.       h2.ex1 {
                     color: green;       /* This type of heading MUST be Green and Large! */
                     line-height: 50px;
                     font-size: 40px }
  17.       .funkyclass {
                     font: 36pt/40pt courier;
                     font-variant: small-caps;
                     border: thick dashed blue }
  18.       #tagid1 {
                     padding: 20px;
                     border: 20px groove #ffffff }
  19.       .class1, #tagid2 { font-family: 'comic sans ms', fantasy; color: rgb(100%,100%,0%) }
  20.       h1, h2, div.class5, blockquote { background: #000080 }
  21.       p.special {
                     font: 12pt/14pt sans-serif;
                     margin: 5px 0px 2px 25px;
                     border: medium dashed #ff0000;
                     background: white url(http://www.foo.com/image.gif) repeat-x fixed top right }
  22.       blockquote {
                     margin-left: 2cm;
                     color: #00ff00 }
  23.       .part1 {
                     font-size: xx-large;
                     color: #808000 }
  24.       h6 {
                     font-size: xx-small ! important;
                     color: red ! important }
  25.        -->
  26.       </style>
  27.       </head>

  28. <body>
  29. <h1 CLASS="funkyclass" ALIGN="center">Welcome to my home page!</h1>
  30.       <br><br>
  31. <p>Hi there! If you are reading this then you have found my home page! Congratulations! I know it can be hard to find my pages, but I bet that you feel lucky now. Now that you are here, please take a look at my page of links to <a HREF="http://www.mysite.com/coolsites.html">cool sites</a> or sign my <a HREF="http://www.mysite.com/guestbook.html">guest book</a></p>
  32. <div CLASS="foo"> My wonderful poetry <br> is available if you are REALLY bored. Why not give it a spin?</div>

  33. <h2 CLASS="ex1"> The Best Poetry I <em>NEVER</em> Wrote</h2>
  34.       <ul>
  35.           <li>'There Once Was A Man From Nantucket' - <span CLASS="class1">Anonymous</span>
  36.           <li>'Cool In Fur' - <span CLASS="class1">Harry B. Foot</span>
  37.                   <li>And My All Time Fave:
  38.                   <ul>
  39.                  <li> 'A Toast To My Toaster' - <span CLASS="class1">Me!</span>
  40.                   </ul>
  41.       </ul>

  42. <blockquote>Brought to you by the letter <span ID="tagid2">&quot;H&quot;</span> and <span ID="tagid1">Joe Shmoe</span> </blockquote>

  43. <div CLASS="class5"> When you are done looking through these masterpieces, I encourage you to visit my proud sponsor!! </div>

  44. <p CLASS="special"><span CLASS="funkyclass">ADVERTISEMENT:</span> Buy Navel Lint Contemplator! Its a browser and its a sandwich spread! Go to our <a HREF="http://www.navellint.com">home page</a> without delay! Why? Because shelf life is only 8 hours unless refrigerated. We know that makes it hard to browse, but it promotes frequent upgrading to the latest and greatest version. </p>

  45. <h6>All standard disclaimers apply. Your life depends on NOT copying this document in any way. This tape will <a HREF="http://www.mysite.com/selfdestruct.html" CLASS="case1">self destruct</a> in 10 seconds...</h6>

  46.       </body>
  47.       </html>


Analysis

Boring Copyright Stuff....