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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the default width and height of a block-level element?

A

100 % width and height equal to the content

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly