Syntax: Declarations

Understanding properties and values

*Tip: Try having a notepad and writing down what you learn!

Download Notes

To continue our first tutorial we learn more about what makes up a rule. We have our selector in place - which element we are targeting - and now we need to provide a series of declarations to give it design features.

Main Points:

  1. CSS is made Rules
  2. A always starts with a Selector (what are we targeting?)
  3. Between the Curly Braces we put our Declarations
  4. A Declaration is made of 2 parts: Property and Value
Examples of declarations:
color: red;
font-size: 100px;
background-color: blue;
Sign Up