Jump to content

Having trouble adding a picture located in my computer.


Harris

Recommended Posts

So i put the location of the file in the source input of img but the picture doesn't show up. Only those who are uploaded on the internet show up. This is what i did -

<img src="/home/harris/kolona/kolona.jpg" align="left" style="margin-left:10px"></img>

Am i missing something?

Link to comment
Share on other sites

Then upload that one too. Else, check case. The web server I use is case sensitive when it comes to file names.

Edited by niche
Link to comment
Share on other sites

Accessing files on the computer requires the file:// protocol. You can access a file like this: file:///C:\Document%20and%20Settings\Users\Me\Images\file.jpg If the HTML file is on your own computer you can use a relative path which doesn't need the file:// protocol.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...