CSS Syntax Flashcards
1
Q
What are the names of the individual pieces of a CSS rule?
A
Selector, declaration, property, value
2
Q
In CSS, how do you select elements by their class attribute?
A
with a dot plus name of the class.
3
Q
In CSS, how do you select elements by their type?
A
Matching the element name.
4
Q
In CSS, how do you select an element by its id attribute?
A
Using a # symbol plus the name of the ID.