03 - HTML Block and Inline Flashcards
How do block-level elements affect the document flow?
Some elements will always appear to start on a new line in the browser window. These are known as block level elements.
Examples of block elements are h1, p, ul, and li.
How do inline elements affect the document flow?
Some elements will always appear to continue on the same line as their neighboring elements. These are known as inline elements.
Examples of inline elements are a, b, em, and img.
What are the default width and height of a block-level element?
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”.
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.