Computer Science, asked by aggarwalpriyanshi9, 8 months ago

differentiate between alignment and spanning

Answers

Answered by Anonymous
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 Kshitu73
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