html-block-and-inline Flashcards
1
Q
How do block-level elements affect the document flow?
A
They start on a new line.
2
Q
How do inline elements affect the document flow?
A
They continue on the same line as their neighboring elements.
3
Q
What are the default width and height of a block-level element?
A
width - 100% of its parent container
height - height of its content
4
Q
What are the default width and height of an inline element?
A
The height and width of its content.