CSS classes and ID's
Classes and ID's make it possible to specify a particular style for a variety of tags. With classes and ID's, you can also define different styles for the same HTML tag.
Styles for classes are specified with the .(dot) character followed by the class name in an internal or external stylesheet. ID's are specified with the # (pound sign) followed by the ID name in an internal or external style sheet.
Example:
<style type="text/css">
#text {
font-family: courier;
font-size: 15pt;
font-weight: bold;
color: blue;
}
.green {
color: green;
}
</style>
For more details on Classes and ID's, read the Classes and ID's lesson.




