DIV tags and SPAN tags treat some content as a whole, such as hiding the whole and moving the whole. Something like a box. Doing so will simplify the code and improve efficiency.
Differences:1. A div is to place the content into a rectangular block, and moving it at will will affect the layout. The span just defines the content as a whole and does not affect the layout and display.
2. div is generally used for typesetting, while span is generally used for the style of local text.