less than 1 minute read

Introduction to CSS

CSS

  • Cascading Style Sheets
  • CSS describes the visual style and presentation of the content written in HTML.
  • CSS consists of countless properties that developers use to format the content: properties about font, text, spacing, layout, etc.
1
2
3
4
5
h1 {
  color: blue;
  text-align: center;
  font-size: 20px;
}

A CSS Rule

  • Selector: h1.
  • Declaration block: { ... }.
  • Declaration(Style): font-size: 20px.
    • Property: font-size.
    • Value: 20px.

Leave a comment