Why doesn't margin-top or margin-bottom work on inline elements?
Inline elements ignore vertical margins because they flow like text. Only horizontal margins affect spacing.
💡 Vertical margins don't apply to inline elements; use inline-block or block for vertical spacing.
Why does display:none remove the element completely, but visibility:hidden only hides it?
display:none removes the element from layout and painting, so no space is taken. visibility:hidden hides it visually but keeps its space.
💡 Use display:none to remove space, visibility:hidden to hide but keep space.
Why do block elements always start on a new line?
Block elements take full width by default, so the browser places them on separate lines to avoid overlap.
💡 Block = new line; inline = flow with text.