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.
cdudefire
11
Junior Poster in Training
Recommended Answers
Jump to Postcould 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 …
All 3 Replies
schoolboy2010
0
Light Poster
cdudefire
11
Junior Poster in Training
cdudefire
11
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.