For my internet programming class I have to create a XHTML file that has an image in it, among other things. The problem that I am having is that when I open up my file on other computers the image will not load. The file path is valid on my own computer but of course when I move to other computers the image does not load. Help.
Jump to Post
could you please post your code.
I think the problem is that you used an absolute path for your image.
For example, you probably used something like
<img src="C:/Documents/website/image.jpg" alt="My image"
To make your code portable on many computers, you should use a relative path like this:
All 3 Replies
We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.