user2276378
user2276378

Reputation: 225

My HTML page correctly references an image but it won't display?

I uploaded a "test.html" page to my website, in the root folder, as well as a "filmandmusic.jpg" image (also in the root folder). The image is displaying as a broken jpg, even when I go to the URL of the image itself.

What am I doing wrong?

http://www.bobbymcglynn.com/test.html

Note: this only happens after uploading the site, I'm using Dreamweaver to design my site and everything looks fine when I'm editing the page locally. I'm uploading with FileZilla.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>

<body>
<p>This is a test page. The "film and music" image should display itself below.</p>
<img src="filmandmusic.jpg" height="75" width="525"/>
</body>
</html>

Upvotes: 0

Views: 60

Answers (3)

PhpLou
PhpLou

Reputation: 440

Your HTML has nothing wrong in that.
if you go to your website root folder and then open your image, you will see that this image has this form so the uploaded image may be wrong

Upvotes: 1

Mees Maas
Mees Maas

Reputation: 29

You probarly dindn't linked the image. Try to fill in the right src path. Maybe it isn't jpg but png. You never now.

Upvotes: 0

chowmean
chowmean

Reputation: 152

It Show that the image contains error. Try Uploading a new image. The error may have been caused due to bad connection problem or the image may be initially damaged.

Upvotes: 0

Related Questions