css-syntax Flashcards
1
Q
What are the names of the individual pieces of a CSS rule?
A
Selector and declaration.
2
Q
In CSS, how do you select elements by their class attribute?
A
By typing “.” before the class name.
3
Q
In CSS, how do you select elements by their type?
A
By typing their element type.
4
Q
In CSS, how do you select an element by its id attribute?
A
By typing “#” before the id name.