@vishalpawarR
Posted
Display block takes the full width of the container like p, div, main etc tags.
Display inline take whatever space it needs not full space like span, anchor, img etc tags
Display flex and grid are mostly used in responsive layouting
Display flex is used for creating 1 dimensional layout
Display grid is used for 2 dimensions layout
Marked as helpful