Div vs span in html !
        Posted  
        
            by Anirudha
        on Geeks with Blogs
        
        See other posts from Geeks with Blogs
        
            or by Anirudha
        
        
        
        Published on Tue, 23 Jul 2013 23:34:40 GMT
        Indexed on 
            2013/08/02
            15:40 UTC
        
        
        Read the original article
        Hit count: 216
        
Originally posted on: http://geekswithblogs.net/anirugu/archive/2013/07/24/div-vs-span-in-html.aspx
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
© Geeks with Blogs or respective owner