Span and div
What is the difference between span and div?
Span is an inline element whereas div is a block level element. Example- <span>1</span> <span>1</span> This will result in - 1 1 <div>1</div> <div>1</div> This will result in - 1 1
A div element is used for block-level organization and styling of page elements, whereas a span element is used for inline organization and styling. Hope that would help.