HTML BLOCK AND INLINE Flashcards
How do block-level elements affect the document flow?
A Block-level element occupies the entire horizontal space of its parent element (container), and vertical space equal to the height of its contents, thereby creating a “block”.
Browsers typically display the block-level element with a newline both before and after the element. You can visualize them as a stack of boxes.
How do inline elements affect the document flow?
Inline elements are those which only occupy the space bounded by the tags defining the element, instead of breaking the flow of the content.
What are the default width and height of a block-level element?
The bounnds of the container
What are the default width and height of an inline element?
Inline elements are those which only occupy the space bounded by the tags defining the element, instead of breaking the flow of the content.