Span tag and div tag in Html
This tag is used for grouping and applying styles to inline elements.
This tag is nothing more than a container unit that encapsulates other page elements and divides the HTML documents into sections.
<div> is used to group together HTML elements and apply CSS styles to many elements at once.
Difference between <div> and <span> tag
The <span> tag is used with inline elements while the <div> tag is used with block-level content.