html-block-and-inline Flashcards

1
Q

How do block-level elements affect the document flow?

A

Block level elements create a new line. Height is determined by the container height and width is the entire width of the page.

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 display within the same line. They do not create a new line on the page.

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

Height = defined height of container, Width = entire width of page

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

Height = the height of the element itself, Width = the width of the element only.

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