CSS not working Span tag in HTML

The difference is not between <span> and <div> specifically, but between inline and block elements. <span> defaults to being display:inline; whereas <div> defaults to being display:block;. But these can be overridden in CSS.To fix it, use the below codeSample Code:
<span style=”display: block;”>

Leave a Reply