html block and inline Flashcards
1
Q
How do block-level elements affect the document flow?
A
Starts new-line and sets size to take up the entire width of screen
2
Q
How do inline elements affect the document flow?
A
Does not start new-line and only takes up as much space as it needs
3
Q
What are the default width and height of a block-level element?
A
Height would take up as much as the content needs. Width is whole screen.
4
Q
What are the default width and height of an inline element?
A
Width takes up as much as content needs.
Height will take up as much as content needs.