Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
|
You put a relative URL in the tag. What's that mean? When you structure your site the way it is to upload, the default page stands alone. Child pages, images, CSS and scripts, and miscellaneous items should each have their own folders. So the relative URL is telling the browser to look in the images folder. So if it's on the home page, put
<img src="images/filename.jpg" alt="description" />
Note: In this instance, ignore the http://www.webmaster-talk.com/ part. The editor is putting that in, even if I put it in code brackets.
On a child page, the browser looks outside of the folder it's in to find images, so it's
<img src="../images/filename.jpg" alt="description" />
img tags are self-closing. Again, W3C schools for more, but that should answer your question here and get you started.
Last edited by serandfae; 01-29-2008 at 11:52 PM..
|