css-syntax Flashcards
1
Q
What are the names of the individual pieces of a CSS rule?
A
Selector, property, and value
2
Q
In CSS, how do you select elements by their class attribute?
A
Use a period (.)
3
Q
In CSS, how do you select elements by their type?
A
Simply use their name
4
Q
In CSS, how do you select an element by its id attribute?
A
Use a pound sign (#)