What is the difference between span and div?

What is the difference between span and div?

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.