0

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...

3
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by fpsasm
1

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" />

Edited by kekkaishi: n/a

0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.