Basic CSS 9

Creating and Applying a Class (2)

A "class selector" starts with a period. You can name it whatever you like. You can apply the class to any element, such as a heading (on the previous page) or a paragraph (on this page).

The CSS is in the source of this page. View > Page Source to see it. You can also see the CSS below.

> Next page
< Previous page
> CSS Examples Index

Copyright © 2003 by Mindy McAdams. All Rights Reserved.