Chapter 1.3 - Introduction to CSS and Advanced HTML.


In this chapter, you will learn about CSS, short for Cascading Style Sheets—a style sheet language designed to modify the appearance of HTML files. While HTML is used to structure how content appears on the website, CSS allows to style and organize the content so it looks visually appealing. CSS is the second building block of every website—once you know it, you will be capable of building any static website that doesn't require interactivity.

CSS is used to apply styles to specific elements in the HTML page that links to it (we will learn how to link HTML with CSS in the homework portion of this chapter). In order to write in CSS, you need to create a file that ends in .css. Once there, the syntax for each style is as follows:

selector {
  property1: value1;
  property2: value2;
  ...
}

We will discuss what selectors, properties, and values are in the following sections of this chapter.