HTML-block-and-inline Flashcards
1
Q
How do block-level elements affect the document flow?
A
They always start on a new line
2
Q
How do inline elements affect the document flow?
A
They continue on the same line
3
Q
What are the default width and height of a block-level element?
A
Block-level element occupies the entire horizontal space of its parent element (container), and vertical space equal to the height of its contents
4
Q
What are the default width and height of an inline element?
A
Inline elements are those which only occupy the space bounded by the tags defining the element, instead of breaking the flow of the content.