34,333
edits
Changes
→Using Classes with CSS Rules
== Using Classes with CSS Rules ==
The techniques we have looked at so far are good for specifying styles for either all tags of a certain type, or for individual tag (either by id or byu specifying a style by embedding it into the HTML tag itself). The ''class'' attribute can be used when a style needs to be applied to a range of tags. A 'class' style rule is specified by prefiong the class name with a dot (.):
<pre>