Question:

How do i insert a image when making a web page using html.?

by  |  earlier

0 LIKES UnLike

i've tried using <img src=c:\video card.jpg> and quite a few other variations but it wont work for me, all i get on the web page is a little box with an x in it. what exactly do i have to type to get this to work.

 Tags:

   Report

5 ANSWERS


  1. I think the problem is the c:/ ..

    If you use &lt;img src=&quot;/images/reallycoolpic.jpg height=&quot;x&quot; width=&quot;x&quot;&gt;

    You can do it to a web image to.

    &lt;img src=&quot;http://www.website.com/picture.jpg height=&quot;x&quot; width=&quot;x&quot;&gt;

    Hope this helps!


  2. There&#039;s no C:\ on a web page.  Try

    &lt;img src=&quot;http://www.mysite.com/video card.jpg&quot; /&gt;

    Put in the URL of your site.

  3. It sounds like you have either a path problem or a quotes problem.  

    First, Internet servers usually do not look at the absolute path of &quot;c:\folder\file&quot;.  Instead they look at the &#039;relative path&#039; from the html file to the file.  

    Next, you have a space in your filename, without it being in quotations.  I recommend taking spaces out of the file names.

    If you have your html file in the root of your website and your image in the same folder, try &lt;img src=&quot;video_card.jpg&quot;&gt;

    If you are going to publish your images in another folder, then you would use:  &lt;img src=&quot;images/video_card.jpg&quot;&gt;

    Good luck

  4. Use:

    &lt;img src=&quot;file:///c:/video card.jpg&quot;&gt;

    That should work ;)

  5. If you want to display an image that is on your hard drive, do something like this:

    &lt;img src=&quot;file:///c:\video card.jpg&quot; /&gt;

    However, if this image is supposed to be viewable by other people, they must have the file in the same location on their hard drive.

Question Stats

Latest activity: earlier.
This question has 5 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions