css-syntax Flashcards
1
Q
• What are the names of the individual pieces of a CSS rule?
A
The selector, and a declaration block.
2
Q
• In CSS, how do you select elements by their class attribute?
A
By adding a dot || . before their class name
3
Q
• In CSS, how do you select elements by their type?
A
By writing out their tag names
4
Q
• In CSS, how do you select an element by its id attribute?
A
By adding a pound sign or # before their name