Reputation: 1629
I have some problem with images on mobile devices
I have images rendered as <img src="http://externalsource/image.jpg"/>
On regular browsers images are shown , on mobile devices not ...
Any Idea why this can happens ?
Upvotes: 0
Views: 86
Reputation: 10814
That's an XHTML-style image tag, and a strict HTML4 parser would reject it. The SGML-compatible syntax rules require a space <img src="http://externalsource/image.jpg" />
(and even then consider it to have a extra attribute named /
, set to an empty string).
That said, I can't picture a real browser parsing HTML4 that strictly - it would never work on the tag soup that makes up the wild internet...
Upvotes: 1
Reputation: 3453
Try the following code
<img src="http://externalsource/image.jpg" alt="Celebrity Mobile" border="0" width="200" height="100"/>
Upvotes: 1