Syntax and Lingo of CSS

CSS

Created: 2022-10-04


This whole block is CSS declaration

h1, h2 {           <- "Element Selector"  
  property: value;  <- "Declarations"
  color: red;      <- "Declarations"
  font-size: 5em;  <- "Declarations"
}

Selector - This selects the HTML element that we are going to style.

The whole declaration blocks are called CSS rulesets