View Single Post
Old 03-09-2021, 03:29 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,561
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
The only advantage I can think of is that a <div> allows you to have inline elements at the same level as the main block elements. In principle things like <img> or <span> are by default inline elements (even if they are styled with display:block), and are not allowed (at least in XHTML 1.1) as direct children of <body>, they must be inside some block element, and the wrapping <div> does it.

I wouldn't use it unless I need that trick for some particular case.
Jellby is offline   Reply With Quote