Basics

Structure of CSS

A CSS rule can determine one or several attributes at once.

css1

Selectors can be as simple as an element type selector like h1 or p, or as specific as #container2 a.pics:hover span, depending on the context. We are working with simple selectors and building up from there.

The property is the aspect of that element that you are choosing to style. There can only be one property within each declaration.

The value is the exact style you wish to set for the property.

css2

Leave a Reply

Your email address will not be published. Required fields are marked *