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
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.
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
4
Q
What are the default width and height of an inline element?
A
width and height are both = to the content it surrounds.