css-syntax Flashcards
1
Q
What are the names of the individual pieces of a CSS rule?
A
selector type
declaration block
key value pair containing property and value
2
Q
In CSS how do you select elements by their class attribute?
A
In CSS you select elements by their class attribute by using a .class selector.
3
Q
In CSS, how do you select elements by their tag name?
A
In CSS, you select elements by their tag name by typing the tag name without any tags.
4
Q
In CSS, how do you select an element by it’s id attribute?
A
In CSS, you select an element by it’s id attribute by using an #id selector