CSS Structure

The structure of CSS looks like this:

  • Selector - Selects the element that we want to style, such as a paragraph, heading.
  • Declaration - Consists of a property and value pair.
  • Property - Selects which property we want to change, such as text color, alignment.
  • Value - Sets the value of the property, such as green, center.
  • Rule - Selector along with declarations.

In this lesson, we will focus on selectors, i.e., how to precisely select the element we want to style.

Instructions

Once you are familiar with the CSS structure, move on to the next exercise!

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with:

1/12

CSS Structure | Start Coder