Navigation Aids

 
 
 
 
 
Click here to IM, text, or chat
Tutorials
FindIt:

Sidebar

Main Content

Stylesheets Modify Tags

Stylesheets can be used to modify the default formatting of tags:
*Tags provide much of the formatting in HTML. And they impose their default formatting on your documents. Stylesheets can modify that default formatting.
*Example 1: <tt></tt>
The default formatting for the <tt></tt> tag is too small to read, and its default font is not always displayed as monotype.
  *  <tt>default</tt>
The Library stylesheet redefines the size and font for the <tt></tt> tag.
  *  <tt>modified</tt>
This is how the <tt></tt> tag is redefined in the Research Guides stylesheet.
tt {
              font-family:
Courier, monotype;
             
font-size: 12px;
              }
*Example 2: <h2></h2>
Here is the default formatting for the <h2></h2> tag:

  *  <h2>default<h2>

The Library stylesheet redefines the color and font of the <h2></h2> tag:

  *  <h2>modified</h2>

This is how the <h2></h2> tag is redefined in the Research Guides stylesheet.
h2 {
              font-family:
Arial, Helvetica, sans-serif;
             
color: #990000;
              }
*An interactive area on the W3C site lets you play with stylesheet rules. (It deals almost exclusively with modifying tags.)
Back * Next
*