html-block-and-inline Flashcards

1
Q

How do block-level elements affect the document flow?

A

Block elements will always appear to start on a new line in the browser window and take up the entire width of their parent element. Their height is fixed to as much as the content needs. Their width and height cannot be set.

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 always appear to continue on the
same line as their neighbouring elements and take up the width and height of their content. Their height is fixed to as much as the text content needs. Their width and height cannot be set.

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 entire width of their parent element and just as much height of the content in the block element.

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 of the content in the inline element.

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