differentiate between alignment and spanning
Answers
Answered by
1
span> defaults to being display:inline; whereas <div> defaults to being display:block; . But these can be overridden in CSS. The difference in the way text-align:center works between the two is down to the width. A block element defaults to being the width of its container
Answered by
11
Answer:
<span> defaults to being display:inline; whereas <div> defaults to being display:block; . But these can be overridden in CSS. The difference in the way text-align:center works between the two is down to the width. A block element defaults to being the width of its container.
hope it will help you......❣️
Similar questions