html-block-and-inline Flashcards
How do block-level elements affect the document flow?
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 do inline elements affect the document flow?
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.
What are the default width and height of a block-level element?
default width of 100%
What are the default width and height of an inline element?
They keep their default height and width and flow within the flow, inline
What accessibility considerations must be considered when choosing HTML elements?
Good semantics,