Skip to content Skip to sidebar Skip to footer

Html Img Tag Not Displaying Image

I have an img tag in my code: But the image is not displaying. The syntax of the tag is

Solution 1:

Try with the file:/// prefix:

<imgsrc="file:///P:\MY DOCUMENTS\Visual Studio 2010\Projects\WebApp\Trends\GreenUp.jpeg" />

Solution 2:

This turns out to be a Firefox problem after all.

Solution 3:

can u try this: this will work for me...

<imgsrc="P:\MY DOCUMENTS\Visual Studio 2010\Projects\WebApp\Trends\GreenUp.jpg" />

Solution 4:

If you are using Visual Studio, the IDE must have probably shown a 'light bulb' to the left of your tag. Click that and select "Encode in base64"

This issue is specific to Visual Studio, because the same code works perfectly in Notepad regardless of browser used.

Post a Comment for "Html Img Tag Not Displaying Image"