HTML block and inline Flashcards

1
Q

How do block-level elements affect the document flow?

A

block-level elements take always start 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 can don’t start on a new line, and multiple inline elements next to each other are rendered as a single, unbroken text flow.

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

The default width of block elements is the width of its parent container. The default height of block elements is the height of the content within its surrounding tags.

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

The width and height an inline element are bounded by the tags defining it.

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