syntax :-
display : inline / block/ inline-block/none
1. inline : takes only the space required by the element.( no margin/ padding)
2.block : takes full space available in width.
3. inline-block - Similar to inline but we can set margin & padding.
4. None : to remove element from document flow.
what is are block element.and eg also?
ans- it occupied all the space ,eg - div,head ,etc.
what are inline element / tag and eg?
ans_ it occupied only requied space ... eg - span, input,a, button,etc