less than 1 minute read

There is many difference between Div and html.

Div is block element and span is inline. If you give padding to div it will work but not to span without set display :block or :inline-block

You can use span inside div but not div inside span. If you tried it you can see code is invalid.

Read this discussion on SO http://stackoverflow.com/questions/183532/what-is-the-difference-between-html-tags-div-and-span