Style specifications like those above can also be included directly
within the head of an individual HTML page, with the style specifications
enclosed in a <style>
element. E.g.,
<style type="text/css">
p { font-family: gill, arial, helvetica, sans-serif ;
font-size:80% }
p.intro { color:blue ;
font-family: gill, arial, helvetica, sans-serif ;
font-size:80% }
</style>
This example specifies that text within paragraphs
will be displayed with a small sans-serif font, unless
the <p>
tag of a paragraph has a class attribute of "intro",
i.e., <p class=intro>
,
in which case the text in the paragraph will be displayed as blue.
Note the possibility (and importance) of specifying alternative font names.
Last modified: Thu, 2007 Mar 8 09:45:21
Slide show generated from beyond.html by Weasel 2007 Mar 8