topical media & game development

talk show tell print

basic-css-04-Exercises-exercise4-2.htm / htm



  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  <html>
      <head>
          <title> exercise 4-2 </title>
          <style type='text/css' media='all'>
              body {
                  font-size: 12px;
              }
              h1 {
                  font-size: 25px;
                  background: rgb(255, 192, 203);
                  padding: 25px;
                  border: thin solid rgb(0, 0, 0);
              }
              p {
                  font-size: 11px;
                  padding: 11px;
                  border: thin solid rgb(0, 0, 0);
                  background: rgb(128, 128, 128);
                  color: rgb(255, 255, 255);
              }
          </style>
      </head>
      <body>
          <h1>
              This is a heading
          </h1>
          <p>
              This is a paragraph of text.
          </p>
      </body>
  </html>


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.