1 Replies - 750 Views - Last Post: 07 September 2009 - 11:19 AM

#1 vaibhav tomar  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 07-September 09

image tag

Post icon  Posted 07 September 2009 - 11:09 AM

when i write the <img>tag and open it with mozilla firefox it didn't show any image and when i tried it with internet explorer it always shows image
whats the difference??
<img src="C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\sunset.jpg"></img>

Is This A Good Question/Topic? 0
  • +

Replies To: image tag

#2 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 5186
  • View blog
  • Posts: 13,914
  • Joined: 18-April 07

Re: image tag

Posted 07 September 2009 - 11:19 AM

Firefox doesn't understand local image paths in that format. Plus you don't need a close tag for the img tag. Try the following...

<img src="file:///C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\sunset.jpg"/>

Here we are telling it to use a local file by specifying the "file" protocol. You should always be using this format to link to local files.

"At DIC we be local file linking code ninjas... we even tried to link to our local community, but were shunned!" :snap:
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1