css-syntax Flashcards
(4 cards)
What are the names of the individual pieces of a CSS rule?
selector and declaration
In CSS, how do you select elements by their class attribute?
by using class name with (.) dot in the front
In CSS, how do you select elements by their type?
elements with their tag or node name
In CSS, how do you select an element by its id attribute?
by using id name with # in the front