<DIV> element is a block level element while <SPAN> is an inline element. Block level are those elements which are formatted visually as blocks (i.e. paragraphs). While <SPAN> element do not form blocks of element .
In simple terms you can visualize paragraphs as block elements and emphasized word as inline element. Below is a simple example where the “The main yelled at every one.” is one block statement. But if we want to emphasize on the “yelled” word then that word is termed as in-line element.
We have used the <DIV> tag to create the block element and the “yelled” word is emphasized as inline element using the <SPAN> tag.
This ASP.NET interview question is sponsored by www.questpond.com
Below is a nice video which discusses ASP.NET authentication and authorization concept in detail. It’s one of the favorite questions when it comes to ASP.NET