html-block-and-inline Flashcards
1
Q
How do block-level elements affect the document flow?
A
Block-level elements will start the content on a new line.
2
Q
How do inline elements affect the document flow?
A
Inline elements will continue the content on the same line.
3
Q
What are the default width and height of a block-level element?
A
A block-level elements occupies the entire horizontal space of its parent element (container) and the vertical space equal to its content height.
4
Q
What are the default width and height of an inline element?
A
Inline elements only take up as much width as necessary for its contents. Height and width will have no effect on inline elements.