CSS Syntax, Colors, Transform Flashcards
1
Q
What are the names of the individual pieces of a CSS rule?
A
A selector, a declaration, and key value pairs.
2
Q
In CSS, how do you select elements by their class attribute?
A
With a period (or full stop) symbol.
3
Q
In CSS, how do you select elements by their tag name?
A
Element names.
4
Q
In CSS, how do you select an element by its id attribute?
A
With a pound (or hash) symbol.
5
Q
What does the transform property do?
A
Applies a 2D or 3D transformation to an element.
6
Q
Give four examples of CSS transform functions.
A
Rotate, scale, skew, or translate