html-block-and-inline Flashcards

1
Q

How do block-level elements affect the document flow?

A

Block-level elements affect the document flow by removing all elements on the left and right side because it takes up the entire width of its containing element and the height is determined by the content within the element. This means all elements before it in code are pushed up and all elements after it in code are pushed down.

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 affect the document flow by being the exact size of the content within the element. It remains on the same line, typically used within a block element. Its main purpose is stylization of text content (em, strong, del).

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 a block-level element is the entire width of the element containing it and the height is determined by the content within the block-level 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 default width and height of an inline element are determined purely by the content within the inline element.

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