1

mandag, 3. december 2007, 17:39


Jeg er ved at validere en side og kan ikke forstå nogen af de fejl den finder. nogen der kan hjælpe?

Dette er min side:

------------------------------------------------------------------------------------------------
<!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=iso-8859-1" />
<title>forside</title>

<link rel="stylesheet" type="text/css" href="body.css" />
<link rel="stylesheet" type="text/css" href="boks.css" />

</head>
<body>

<div id="menu">
<img src="ellert.png" alt="" border="0" usemap="#Map" class="ellert">
<map name="Map" id="Map"><area shape="rect" coords="88,238,207,307" alt="" href="sam.html" />
<area shape="rect" coords="57,99,176,168" alt="" href="event.html" /><area shape="rect" coords="309,38,428,107" alt="" href="kalender.html" /><area shape="rect" coords="614,63,732,132" alt="" href="tagsc.html" /><area shape="rect" coords="613,238,732,307" alt="" href="tagkom.html" /><area shape="rect" coords="6,7,41,34" alt="" href="forsideuk.html" /><area shape="rect" coords="48,8,83,35" alt="" href="forside.html" />
</map>
</div>

</body>
</html>
-----------------------------------------------------

Og dette er fejlene:
------------------------------------------------------
Line 21, Column 69: end tag for "img" omitted, but OMITTAG NO was specified.
… alt="" border="0" usemap="#Map" class="ellert">

You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

Line 21, Column 0: start tag was here.
<img src="ellert.png" alt="" border="0" usemap="#Map" class="ellert"> Line 25, Column 6: XML

Parsing Error: Opening and ending tag mismatch: img line 21 and div.
</div>

Line 32, Column 7: XML Parsing Error: Opening and ending tag mismatch: div line 20 and body.
</body>

Line 33, Column 7: XML Parsing Error: Opening and ending tag mismatch: body line 17 and html.
</html>

Line 33, Column 7: XML Parsing Error: Premature end of data in tag html line 4.
</html>


2

mandag, 3. december 2007, 20:37


Sådan lige hurtigt set, så har du ikke afsluttet den IMG tag korrekt.

Det skal være <img src="" alt="" />


3

mandag, 3. december 2007, 20:39


Jeg takker, det var lige det der skulle til... nu gik den igennem :D


Nyeste Videoer og Trailers

Indsend nyhed
Har du fundet en fed nyhed så indsend den så alle andre på Tweak.dk kan få glæde af den.