naveen maurya
naveen maurya

Reputation: 61

Img tag not working when i used local sytem path

<body>
<img src="file:///G:/Flower_Fields_5.jpg"  width='300' height='190' />
</body>

This image tag not working when i used above code

Upvotes: -1

Views: 64

Answers (3)

Mr.M
Mr.M

Reputation: 1480

Try

below one

Read about absolute path and relative path for images

<img src="http:\\localhost\site\img\mypicture.jpg"/>

Hope this should work

Upvotes: 1

Ivin Raj
Ivin Raj

Reputation: 3429

This should Work.

<img alt="" src="file:///C:/Users/Roby/Pictures/battlefield-3.jpg" width='300' height='190' />

Upvotes: 1

Jim Garrison
Jim Garrison

Reputation: 86774

<img src="'file:///G:/Flower_Fields_5.jpg"  width='300' height='190' />
          ^

Extra single quote indicated above

Upvotes: 1

Related Questions