Discussion Forum | Board Infinity

Difference between <div> and <span>

Difference between

and
1 Like

The div should be used to wrap sections of a document, while span is used to wrap small portions of text, images, etc. The < div > element is used to create layouts in html, while <span> is used to stylize the different forms of text.