View Single Post
Old 08-09-2017, 04:27 AM   #12
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,557
Karma: 93980341
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by dbird View Post
Are you sure? When I use the calibre "Insert Image" button, all it inserts is: <img alt="Image" src="images/00004.png" />. No block level tags.
Semantically, an image is nothing more than an alternate representation of the text equivalent (the "alt" attribute of the image), thus it needs to be contained within the same type of block that text is contained within: either <p> or <div>.

The fact that browsers (and book readers) will in reality display images that are not contained within blocks shouldn't be taken as a reason not to put them in blocks. The easiest thing to do is just to surround the image with <div> ... </div> tags.
HarryT is offline   Reply With Quote