The example you gave uses relative adressing for the URL. That means the full URL of the image is a concatenation of the current page's folder's URL with the contents of the src=parameter. If the web page was in your root directory, the full URL would become:
Bethkatz' example shows the web page using the full URL. The only difference is that using relative addressing makes maintenance easier, especially moving your web site to a different hosting provider.
I assume you have a problem and can't get something to work but I'm not sure what your problem is. If you have a web page up and running, then trying both approaches would be a simple thing to do.
The big thing being left out is whether you're creating your own web pages or using Comcast's PWP building tools (which we do not recommend).
If the page you are building is at the same level of your file system as the images folder that contains wordlmp2.gif, you use the same form you were using at Adelphia with the relative address of images/worldmp2.gif.
I use relative addresses all over the place, but sometimes I use hardcoded references for images and pages that may be external to the pages I'm building. These pages built with iWeb have a separate folder for each page:
I am responding to my own post. I haven't tried it yet, but I
suspect that the problem was that I do not have images in a separate
sub-directory on Comcast, whereas formerly on Adelphia they were in
a /images subdirectory. I will try to correct this by
removing "/images" from the script.
I am responding to my own post. I haven't tried it yet, but I suspect that the problem was that I do not have images in a separate sub-directory on Comcast, whereas formerly on Adelphia they were in a /images subdirectory. I will try to correct this by removing "/images" from the script.
Or create an images directory and put your images there.
I don't know if there is another solution or if the approach I took was the fastest for load time. I am open to other suggestions.
It is always good coding practice to use relative addressing rather than absolute addressing whenever possible. Your tag could have been written <IMG src="people.gif" width=238 height=139 ALT="People"> because the image is in your root directory. If the image was in a directoyr named "images" your tag could look like <IMG src="images/people.gif" width=238 height=139 ALT="People">