html-block-and-inline Flashcards
1
Q
How do block-level elements affect the document flow?
A
they begin on a new line
2
Q
How do inline elements affect the document flow?
A
it takes up only the space it needs to display its content
3
Q
What are the default width and height of a block-level element?
A
it has the height of its content and the width of the block
4
Q
What are the default width and height of an inline element?
A
it is the size of its content