CSS Flashcards
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?
Using a dot (.) before typing the class of the element
In CSS, how do you select elements by their tag name?
typing the element as the selector
In CSS, how do you select an element by its id attribute?
Using a # before typing the id of the element
Name three different types of values you can use to specify colors in CSS.
color names, rgb values, hexcodes
What CSS properties make up the box model?
padding, border, margin, content width/ height
Which CSS property pushes boxes away from each other?
margin
Which CSS property add space between a box’s content and its border?
padding