CLASS

A class is used to define a set of style rules that may be applied to any number of elements. First you must define a class, then you may apply it...

Not all p tags need to be styled the same with the HTML 'p' selector. Using a class selector, we can choose which tags to hook the style on.

  1. define the class in CSS
    .classname{ ...css style rules... }
  2. apply the class to one or more elements in the body
    <tagname class="classname"></tagname>

An external link to BCIT can be styled differently than others, such as this relative link to the back to the session home page.