<class home>  <styles>   <back   next>

Styles

Kinds of Style:

The two most common kinds of style are:

Redefined tags and style class


Type 1: Redefining tags: You can redefine html tags to include new properties in addition to it's common properties such as making all <h2> tags or headin, size 2, tags red and Arial.

ex.
h2{color:red font-family:Arial}

There are two parts to this style: the selector area or current tag and the style redefinition are separated by curly brackets.

h2{color:red font-family:Arial}
selector {style definition}


Type 2: Class

With classes you name your own style and then refer to that name in your html file to apply the style.

This looks like:

ex.
.mystyle

notice the "." it always preceeds a class element.