CSS Syntax Flashcards
1
Q
What are the names of the individual pieces of a CSS rule?
A
selectors and declaration block
2
Q
In CSS, how do you select elements by their class attribute?
A
using a (.) in front of the class name
3
Q
In CSS, how do you select elements by their tag name?
A
by just typing the tag name ex. body
4
Q
In CSS, how do you select an element by its id attribute?
A
by using the # symbol you can select the id attribute directly