html-block-and-inline Flashcards
(4 cards)
How do block-level elements affect the document flow?
Block-Level element always start in a new line e.g. <h1>, </h1><p>, </p><ul>, and <li>.</li></ul>
How do inline elements affect the document flow?
Inline elements continue on the same line as neighboring elements e.g. <a>, <b>, <em>, and <img></img></em></b></a>
What are the default width and height of a block-level element?
100 % width and height equal to the content
What are the default width and height of an inline element?
only occupy just the width it requires in relation to the other elements in the line