CSS Terminology
Read That Rule
Colors
Type & Text
Wild Card
100

This term refers to the part of a CSS rule used to target an HTML element in a stylesheet, such as <h2> or .menu.

Selector.

100

p {

  color: blue;

}

Selects every <p> and turns the text within it blue.

100

This method of identifying colors in CSS starts with a #.

Hex code

100

The CSS property used to change the size of text.

font-size
100

The type of CSS that is written in <style> tags, within the <head> of an HTML document.

Internal CSS

200

This term refers to the second half of a rule, which is enclosed in {} brackets.

Declaration.

200

h1, h2, h3, h4, h5, h6 {

  text-align: center;

}

Selects every heading and aligns its text to the center.

200

This method of This method of identifying colors in CSS requires these three different values.

Red, green, and blue (RGB).

200

The best CSS element to use when determining the font of text.

font-family

200

The full name of the abbreviation "CSS."

Cascading Stylesheets (or Style Sheets).

300

This term refers to the part of a CSS rule that declares which element of the style is changing (ex: background-color).

Property

300

div {

  margin: 20px;

}

Selects every <div> and adds a margin of 20 pixels to it.

300
This measure for the intensity of a color, i.e., how subtle/vibrant it is.

Saturation

300

The type of font that this game is being written with, often considered more legible (but less formal) than its alternative.

Sans-serif

300

The standard size for text in most browsers.

16 pixels (px)

400

This term refers to the part of a CSS rule that declares how the style of a particular element will change (ex: gray).

Value

400

div.note {

  margin: 2rem;

}


Selects every <div> with a class="note" attribute assigned to it, and gives it a margin of twice the font size of the root element (i.e., the <html> element).

400

The measure of how dark/light a color is; i.e., how much white or black it has.

Value
400

In addition to left, right, and center, you can specify the text-align property with this value, which ensures that every line of text fills the entire box, except the last.

Justify

400

A unit of size that allows you to scale something based off of the font-size of its parent element.

em

500

A name that describes each of the following items: rem, em, %, vh.

Relative units

500

blockquote #small {

  font-size: 25%;

}


Selects elements that have an ID attribute of "small" AND are within a blockquote element, then makes their font-size 25% of whatever its original size was.

500

Unlike formulas that create more diverse color palettes (i.e. analogous or triadic), this formula creates a more cohesive palette with different versions of a single hue.

Monochromatic

500

A name that describes each of the following items:

:link, :visited, :hover, :active, :focus

Psuedo-classes


(page 291 of Duckett!)

500

When you use rem as a unit of size, you're scaling the size of a property (font-size, margin, border, etc.) off of the font size of this element.

<html>