Tap for Menu

CSS Selctors

There are three different ways to select something to style with CSS. This makes it very easy to style parts of documents.

The first method in the above screenshot is the element selector. Everything with a "p" tag will be styled.

The next method allows you to select elements by id's. You can add an "id=para1" to a "p" tag, for example. This is known as the ID Selector.

The last element selector is called the Class Selector. This allows you to select tags that you have specified a specific class too.