HTML Block and Inline Flashcards
Using HTML to display lists of information.
How do block-level elements affect the document flow?
Block level elements appear to start on a new line when viewed in the browser.
How do inline elements affect the document flow?
Inline level elements appear to continue on the same line as their neighbouring elements in the web browser.
What are the default width and height of a block-level element?
A Block-level element occupies the entire horizontal (width) space of its parent element (container), and vertical (height) space equal to the height of its contents, thereby creating a “block”.
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.