HTML block and inline Flashcards
1
Q
How do block-level elements affect the document flow?
A
block-level elements take always start on a new line.
2
Q
How do inline elements affect the document flow?
A
Inline elements can don’t start on a new line, and multiple inline elements next to each other are rendered as a single, unbroken text flow.
3
Q
What are the default width and height of a block-level element?
A
The default width of block elements is the width of its parent container. The default height of block elements is the height of the content within its surrounding tags.
4
Q
What are the default width and height of an inline element?
A
The width and height an inline element are bounded by the tags defining it.