XHTML Image help

Don

Solid State Member
Messages
13
This is a newb question, But I've just recently got into coding and I need help.

Ok.

<img src="images/photo.jpg" />

images, What does that meen, Folder name? I've even tried a direct route which doesn't be seem to be working. And no my browsers aren't blocking it.
 
images is sinply the name of the folder that the images are in...

what you put there entierly depends on how you have set up the folder on your web server...

if you have this in your web directory
Code:
|
|-index.html
|-photo.jpg
then to link and image you write
Code:
<img src="photo.jpg" />

but if your folders are set up like this
Code:
|
|-index.html
|--images
|    |-photo.jpg
then you use
Code:
<img src="images/photo.jpg" />
like wise if you have

Code:
|
|-index.html
|--pics
|    |-photo.jpg
then you use
Code:
<img src="pics/photo.jpg" />
 
Back
Top Bottom