HTML Block and Inline Elements Flashcards

1
Q

How do block-level elements affect the document flow?

A

A block-level element always starts on a new line and takes up the full width available (stacks of boxes).

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 are those which only occupy the space bounded by the tags defining the element, instead of breaking the flow of the content.

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 = height of the content. Width = width takes up the full length of the parent container (length of the 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

The default height and width of an inline element is the height and width of the content.

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