HTML-Block and Inline Flashcards
1
Q
How do block-level elements affect the document flow?
A
It will start at a new line
2
Q
How do inline elements affect the document flow?
A
It will share the same line (if possible).
3
Q
What are the default width and height of a block-level element?
A
The default width is 100%
The height is dependent on the size of the content (the value is set to auto).
4
Q
What are the default width and height of an inline element?
A
Both height and width are set to auto.