hi,im going crazy im introduced to the basics of xhtml and when
i tried to insert an image it dosent appear in the browser
i have checked the code 100 times nothing seems wrong
thie is the simple code

<?xml version="1.0" enconding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //en"
"http://www.w3.org/tr/xhtml 1.0transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>


  <title>world peace</title>


</head>
<body>
<img border="0" src="/images/2173453.jpg" alt="koria girl" width="304" height="228" />






</body>

</html>

thank you in advance...

Recommended Answers

All 2 Replies

try changing line 15 to thia

<!--<img border="0" src="/images/2173453.jpg" alt="koria girl" width="304" height="228" />-->
<img border="0" src="images/2173453.jpg" alt="koria girl" width="304" height="228" />

If you typed the command

/images/2173453.jpg

it will look at "/" which is root, and look for a folder images in root, and then look for a image 2173453.jpg.

I'm assuming, and so is kekkaishi, that you mean "./" The " ./ " denotes "in this directory". So

./images/2173453.jpg

will open up a folder "images" in the same directory as the .html file is in, and look for the image 2173453.jpg.

Hope that explanation helps.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.