What is CSS?

CSS (Cascading Style Sheets) is a language used to style and design web pages. While HTML defines the structure, CSS controls the appearance.

Example of CSS:

h1 {
  color: blue;
  font-size: 24px;
}

In this example:

  • The color of the <h1> heading is set to blue.
  • The font size is set to 24 pixels.