html-block-and-inline Flashcards

1
Q

How do block-level elements affect the document flow?

A

Block level elements always start on a brand-new line

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

How do inline elements affect the document flow?

A

Allow you to put multiple elements on the same line

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

What are the default width and height of a block-level element?

A

Height is height of the content and width is 100% of the element it is nested in

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

What are the default width and height of an inline element?

A

Width and height of an inline is only as much as is needed for the content inside

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