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