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 using class name with (.) dot in the front
3
Q
In CSS, how do you select elements by their type?
A
elements with their tag or node name
4
Q
In CSS, how do you select an element by its id attribute?
A
by using id name with # in the front