Why does this not work?

Discussion in 'Web Design' started by jesseakers, May 7, 2012.

to remove all ads.
  1. jesseakers

    jesseakers New Member

    I am practicing my sweet html skills and am playing with inserting images. I copied and pasted the location so there should be no typo but this doesn't work: <img src="C:\Users\owner\Pictures\2012-02-02\006.JPG" alt="photo"/>
    Whta did I do wrong?
  2. Phreaddee

    Phreaddee Super Moderator Staff Member

    well number one it is referenced to your c:

    say for instance you had a folder called "websitefolder"

    inside that folder you had all your html files.
    you also had another folder in there called "images" you would put all your images in that folder
    you would then call the images like so
    <img src="/images/image.jpg" alt="" />
  3. Pheno

    Pheno New Member

    To start with, just put your image in the same directory as your html file, and then you don't need to worry about directory path

    <img src="image-name.jpg" alt="">

Share This Page