There is a great difference between the div tag and span tag. The span tag does not take you to the next line but div tag takes you on the next line. i was building a website and faced a problem involving this issue.Actually div and span, both are used to structure the document.I was using span with css to build a menu but soon released that when the user refreshes the content, he will see all the urls which he has visited earlier comes in line and all other remains separate.This is really frustating. Then i realized that i should use div tag for this purpose…..but a loin’s eye can identify this power of span tag…












adding a line return between
adding a line return between DIV is the normal behavior but you can use style=”display: inline” in your DIV so that it will not have a line return. Default display for DIV is “block”