Technical Discussion
  >> Web Design / HTML / Web hosting Forum


Register (or login) on our website and you will not see this ad.


These posts have been archived and can no longer be replied to or modified.
Pages in this thread: 1 | 2 | (show all)   Print Thread
Standard User Bugzy
(experienced) Sat 03-Jun-06 17:11:27
Print Post

HTML


[link to this post]
 
I'm trying so hard for the 1st time to get an image to display using HTML, please could you look at this code and see where i'm going wrong, the image i want to display is in a folder which is called images and the picture is called Bart-02-june.


<html>
<body>


<p>
This is my HTML done image, hope it works... :-)
<img src="images/Bart-02-june.wmf" width="60" height=106">
<p>




</body>
</html>


<n>ildram

Edited by Bugzy (Sat 03-Jun-06 17:13:54)

Standard User bigtart
(committed) Sat 03-Jun-06 18:25:55
Print Post

Re: HTML


[re: Bugzy] [link to this post]
 
ok 2 things:

1, your inverted commas are not complete on your code above.
<img src="images/Bart-02-june.wmf" width="60" height=106"> The 106" needs to be "106"

2, you're using wmf files. I have never used wmf files and dont know how compatible they are on the web. Common image formats are .jpg .gif and .bmp


edit: just done a quick test with a wmf file and it seems to work ok on the web. Fix your inverted commas =)
Standard User Bugzy
(experienced) Sun 04-Jun-06 00:37:12
Print Post

Re: HTML


[re: bigtart] [link to this post]
 
Still no luck, the image is in a folder on my pc, the folder is called (Images) and the picture is called (Bart-02-june) but everytime i launch my html code in a browser i just get a box but no image, what am i doing wrong still, i've changed my code to this now.?


<html>
<body>


<p>
This is my HTML done image, hope it works... :-)
<img src="C:\Documents and Settings\Tom\Desktop\images\Bart-02-june.wmf" width="60" height="106">
</p>




</body>
</html>


<n>ildram

Edited by Bugzy (Sun 04-Jun-06 01:38:59)


Register (or login) on our website and you will not see this ad.

Standard User camieabz
(legend) Sun 04-Jun-06 01:41:19
Print Post

Re: HTML


[re: Bugzy] [link to this post]
 
Is the HTML file at the same level as the folder?

If the folder is back a level, you may need to use the following as the path:

"../images/Bart-02-june.wmf"

For every folder back add another ../../../ etc.

Be sure you have the file extension correctly. Try uppercase characters for the file extension. I've seen .jpg and .JPG, and it matters. Also, for simplicity, perhaps you can rename the file to something without dashes. Keep it simple, and once working, rename to what you want it to be.



In defeat he fled. In revolution he abdicated. In exile he remarried.

Camie

SAR 715...plusnet...1944 / 248

~ The AG'ers Mugshots ~

~ Camie's Forums ~
Standard User Bugzy
(experienced) Sun 04-Jun-06 08:54:04
Print Post

Re: HTML


[re: camieabz] [link to this post]
 
I've put my image in a folder on the c: drive now to make it easier and renamed it just bart, but i still cant get anywhere with it, i've even tryed a new code, does the html file and the image have to be in the same directory, even though i've tryed that and it still didn't work, just a blank image box, this is the new code.


<html>
<body>


<p>
This is my HTML done image, hope it works... :-)
<img src="c:\images\bart.wmf"
width="60" height="106">
</p>




</body>
</html>


<n>ildram
Standard User brandy
(fountain of knowledge) Sun 04-Jun-06 12:09:50
Print Post

Re: HTML


[re: Bugzy] [link to this post]
 
I just tried that and it worked. I used IE6 and the html and image are in the same directory.

I put the following into the IE address - file:///c:/images/bart.html
Standard User chippy2
(fountain of knowledge) Sun 04-Jun-06 12:12:29
Print Post

Re: HTML


[re: Bugzy] [link to this post]
 
Do you get a red cross in one corner of the box? If you do then IE or whatever doesn't know where the file is. If you get an empty box you have some problem with the image itself. I have copied your code as posted and it works fine with a random image I created using PSP.
Standard User Bugzy
(experienced) Sun 04-Jun-06 12:36:02
Print Post

Re: HTML


[re: chippy2] [link to this post]
 
The box for the image shows up but no image in it, and i get a funny looking little square in the top left corner too, so dont know whats wrong if the code works for you, have you placed your image and html file in the same directory.?

<n>ildram
Standard User brandy
(fountain of knowledge) Sun 04-Jun-06 13:41:37
Print Post

Re: HTML


[re: Bugzy] [link to this post]
 
Try opening IE and drag-n-drop the image onto it from an explorer window.

Which browser you using?
Standard User bigtart
(committed) Sun 04-Jun-06 17:17:17
Print Post

Re: HTML


[re: brandy] [link to this post]
 
also make sure you have all the correct upper and lower case.

If the image is called "MySillyPic" then it wont work if you refer to it as "mysillypic"
Pages in this thread: 1 | 2 | (show all)   Print Thread

Jump to