U of S | DCS | Courses | CAI | CSS | <Style> Tag

[Back] [Contents] [Next]


The <Style> Tag


Document level stylesheets are specified using the <style> tag in the <head> section of your HTML document. For example:


<html>
<head>
 <title>document Title Here</title>

 <style TYPE="text/css">
   <!--
    /* style definitions like 
       in previous example */
    h1,h2,h3 {font-family: sans-serif;
        color: navy}
   -->
 </style>
</head>
<body>
  <h1>Heading in navy sans-serif text</h1>
  Other text here.
</body>
</html>

Heading in navy sans-serif text

Other text here.


Please send comments about this course to Kevin.Lowey@Usask.CA