CSS Flashcards
• To link to html make sure to use this format below:
• link rel=”stylesheet” href=” ____the file name of css”>
• What are the names of the individual pieces of a CSS rule?
o Selector s // indicate which element the rule applies to.
o Declaration // tells how to be styled
Sit inside two curly brackets. { }
It has a property & a value that is separated by a colon (:)
• In CSS, how do you select elements by their class attribute?
o By using a (.) before the attribute name
• In CSS, how do you select elements by their type?
o By using their element type
• In CSS, how do you select an element by its id attribute?
o By using a (#) octothorpe before the attribute name
• Name three different types of values you can use to specify colors in CSS
o Color Name , RGBa Values , Hex Codes
• What CSS properties make up the box model?
o Padding, Border, Margin
• Which CSS property pushes boxes away from each other?
o Margin
• Which CSS property add space between a box’s content and its border?
o Padding