CSS Flashcards

1
Q

• To link to html make sure to use this format below:

A

• link rel=”stylesheet” href=” ____the file name of css”>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

• What are the names of the individual pieces of a CSS rule?

A

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 (:)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

• In CSS, how do you select elements by their class attribute?

A

o By using a (.) before the attribute name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

• In CSS, how do you select elements by their type?

A

o By using their element type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

• In CSS, how do you select an element by its id attribute?

A

o By using a (#) octothorpe before the attribute name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

• Name three different types of values you can use to specify colors in CSS

A

o Color Name , RGBa Values , Hex Codes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

• What CSS properties make up the box model?

A

o Padding, Border, Margin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

• Which CSS property pushes boxes away from each other?

A

o Margin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

• Which CSS property add space between a box’s content and its border?

A

o Padding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly