U of S | DCS | Courses | CAI | CSS | Inline Classes

[Back] [Contents] [Next]


Inline Classes - Class Attribute


Every tag within the <body> section of an HTML document (including the <body> tag itself) can use a new CLASS attribute to identify what class of text this is and display it properly.

For example, if the stylesheet says:

.bosswords {color:darkgreen; font-style:italic}
then:

Source:
The Boss says
<blockquote class="bosswords">
"Get Back to Work!"
</blockquote>

Result:
The boss says:
"Get back to work!"


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