HTML-Block-and-Inline Flashcards

1
Q

How do block-level elements affect the document flow?

A

they occupy the entire horizontal space of the parent element

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

occupy the space bounded by the tags that define the element instead of breaking the flow of the element.

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

width = 100% wide and height = depends on the innner content

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 are both = to the content it surrounds.

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