html-block-and-inline Flashcards

1
Q

How do block-level elements affect the document flow?

A

each one will appear on a new line below the last one, and they will be separated by any margin that is set on them.

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 blocks respect their siblings and allow them to sit horizontally. They’re only as wide as their content. They can also be vertically aligned using the vertical-align property, as opposed to block-level elements which can’t.

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

default width of 100%

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

They keep their default height and width and flow within the flow, inline

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

What accessibility considerations must be considered when choosing HTML elements?

A

Good semantics,

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