reading-notes

CSS review:

CSS works by associating rules with HTML elements. These rules govern how the content of specified elements should be displayed. A CSS rule contains two parts: a selector and a declaration.

CSS declarations sit inside curly brackets and each is made up of two parts: a property and a value, separated by a colon. You can specify several properties in one declaration, each separated by a semi-colon

Color

Forground color

The color property allows you to specify the color of text inside an element. You can specify any color in CSS in one of three ways:

Contrast :

When picking foreground and background colors, it is important to ensure that there is enough contrast for the text to be legible.

  1. Low contrast
  2. Meduim contrast
  3. High contrast