Help please with HTML Notepad image?

Haydn

New member
Hey all, im having some trouble with a notepad HTML, im trying to add a photo, the photo is on my desktop, and this is the code i put
</HTML>
<center>
<img scr="Chocolate.jpg">

When i open the website a small square with a torn paper icon appears, what am i doing wrong?
 
Unless the html file and the image are in the same location or folder, you need to write out the whole path of the image (like <img src = "C:\....\....\Chocolate.jpg">)
 
Browser not able to find the image in the specified path. In your case image file should reside in the same html directory. that's why you see torn paper.

ex.

<html>
<head>
</head>
<body>
<div>
<img width=256 height=192 id="Picture 0" src="C:/image001.jpg" alt="Blue hills.jpg">
</div>
</body>
</html>


I suggest use an HTML Editor rather than Notepad.

- Jeevasakthi
 
Browser not able to find the image in the specified path. In your case image file should reside in the same html directory. that's why you see torn paper.

ex.

<html>
<head>
</head>
<body>
<div>
<img width=256 height=192 id="Picture 0" src="C:/image001.jpg" alt="Blue hills.jpg">
</div>
</body>
</html>


I suggest use an HTML Editor rather than Notepad.

- Jeevasakthi
 
Browser not able to find the image in the specified path. In your case image file should reside in the same html directory. that's why you see torn paper.

ex.

<html>
<head>
</head>
<body>
<div>
<img width=256 height=192 id="Picture 0" src="C:/image001.jpg" alt="Blue hills.jpg">
</div>
</body>
</html>


I suggest use an HTML Editor rather than Notepad.

- Jeevasakthi
 
The simpliest way is the save the HTML file in the same place with the photos. For exmple, if your photo is on the desktop, then you crate the HTML on the desktop too.
 
Back
Top