html-block-and-inline Flashcards

1
Q

How do block-level elements affect the document flow?

A

Block-level elements will start the content on a new line.

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 will continue the content on the same line.

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

A block-level elements occupies the entire horizontal space of its parent element (container) and the vertical space equal to its content height.

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

Inline elements only take up as much width as necessary for its contents. Height and width will have no effect on inline elements.

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