View on GitHub

reading-notes

Learning Notes Repo for Code Fellows

What is CSS?

CSS (Cascading Style Sheets) allows you to create great-looking web pages. It is a language for specifying how documents are presented to users.

How to add CSS?

Multiple style sheets

If some properties have been defined for the same selector (element) in different style sheets, the value from the last read style sheet will be used.

Cascading order

All the styles in a page will “cascade” into a new “virtual” style sheet by the following order:

  1. Inline style (inside an HTML element)
  2. External and internal style sheets (in the head section)
  3. Browser default

Color property

The color property specifies the color of text and there are several ways to choose its value:

<==Back>