Structure of CSS

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


Selectors can be as simple as an element type selector like h1 or p, or as specific as #container2 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.


Leave a Reply

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