My images are not displaying.

yeah ! -  
 terryboggart -
Hello,

I created a website with KompoZer and everything works very well when I launch it in the browser. I created an account on Webhost, but when I launch the site, my background image does not appear, along with my two GIF images and two linked images. I'm not very good with computers and I don't know how to upload them to my site. I've tried uploading them in the file manager, but it shows their names, and it still doesn't work.

1 answer

  1. terryboggart
     
    Yo, I recommend using FileZilla (a free FTP software developed by Mozilla) which is much more practical and simple to use than the upload functions of Kompozer.

    As for the images that do not display, it is a classic error of beginners in publishing HTML pages.
    To make HTML pages accessible to everyone on the Internet, they must be saved on the host, and they will be accessible from the page named previously index.html (this is a standard, it corresponds to the homepage) which will display when you enter the domain name of the site in the browser (e.g. domain name: www.google.fr or www.commentcamarche.net).

    The images present on the page are loaded by HTML using the image tag:
    <img src="image_address.jpg" />
    The tag has a name and the src (source) attribute that indicates where it should look for the image. When creating a site, you start by writing the HTML and indicating the addresses of the images by specifying a file from the computer (the best practice is to group them in a folder located in the same place as the pages).

    There are 2 types of addressing: absolute and relative.
    Absolute addressing indicates the complete location of the file, for example:
    c://my documents/Documents images/my_image.jpg

    This mode of addressing is ABSOLUTELY TO BE AVOIDED FOR A WEB PAGE.

    You should use relative addressing which indicates from the opened HTML file where it should go to find the image, for example:

    images/my_image.jpg

    Indicates to look for the images folder in the folder containing the HTML page, then look for my_image.jpg

    You can navigate down as many folders as necessary by separating them with the slash (/) and then indicating the folder to use:
    images/landscape/city/my_image.jpg

    The image must be located in the images folder in the same folder as the HTML file, then within that folder in the landscape folder, and in the landscape folder in the city folder must be the image named my_image.jpg

    You can go up to the folder above by indicating ../
    ../gallery/my_image.jpg
    Indicates to go to the folder containing the HTML file and then look for the gallery folder to find my_image.jpg

    You can only use relative addressing because absolute addressing refers to a location on your computer, not the server, while the server must contain all the images. Check your access path, creating a folder for all images is far from a luxury and allows you to see more clearly by separating HTML pages from the images that will load and always indicating the same access path for all images.
    1