Sitter och gör en sida i XHTML 1.0 och vill nu validera den via http://validator.w3.org/check. Får följande felmeddelanden, men kan inte förstå var felet är.
Så här ser dokumentet ut;
Ändrat lite i texten, men kodningen ser exakt likadan ut.. Förstår inte alls,,,fått ner det från ca 19 fel till 7 + 1 varning. Ska inte body och html taggarna stängas eller vad är det frågan om.?.:/ Får det heller inte att fungera med åäö, funderar att ändra det för hand om det inte funkar sen, men är ändå konstigt, har använt exakt samma doctype charset-iso på andra sidor där allt fungerat utan problem.. Kanske inge bra att lämna sånt här till sista sekunden utan sömn..
Tack på förhand om nån har tid och lust att hjälpa till.
Citat:
????
# Error Line 33, Column 18: end tag for "ul" omitted, but OMITTAG NO was specified
</ul>,</li> </div>
__________________________________________________ ___
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
# Info Line 29: start tag was here
><ul id="meny">
__________________________________________________ __
# Error Line 48, Column 8: end tag for "ul" omitted, but OMITTAG NO was specified
</body>
__________________________________________________ _____
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
# Info Line 36: start tag was here
><ul class="cont">
__________________________________________________ _
# Error Line 33, Column 18: XML Parsing Error: Opening and ending tag mismatch: ul line 29 and div
</ul>,</li> </div>
__________________________________________________ ____
# Error Line 48, Column 8: XML Parsing Error: Opening and ending tag mismatch: ul line 36 and body
</body>
__________________________________________________ _
# Error Line 49, Column 7: XML Parsing Error: Opening and ending tag mismatch: div line 28 and html
</html>
__________________________________________________ __
# Error Line 49, Column 7: XML Parsing Error: Premature end of data in tag body line 16
</html>
__________________________________________________ __
# Error Line 49, Column 7: XML Parsing Error: Premature end of data in tag html line 4
</html>
</ul>,</li> </div>
__________________________________________________ ___
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
# Info Line 29: start tag was here
><ul id="meny">
__________________________________________________ __
# Error Line 48, Column 8: end tag for "ul" omitted, but OMITTAG NO was specified
</body>
__________________________________________________ _____
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
# Info Line 36: start tag was here
><ul class="cont">
__________________________________________________ _
# Error Line 33, Column 18: XML Parsing Error: Opening and ending tag mismatch: ul line 29 and div
</ul>,</li> </div>
__________________________________________________ ____
# Error Line 48, Column 8: XML Parsing Error: Opening and ending tag mismatch: ul line 36 and body
</body>
__________________________________________________ _
# Error Line 49, Column 7: XML Parsing Error: Opening and ending tag mismatch: div line 28 and html
</html>
__________________________________________________ __
# Error Line 49, Column 7: XML Parsing Error: Premature end of data in tag body line 16
</html>
__________________________________________________ __
# Error Line 49, Column 7: XML Parsing Error: Premature end of data in tag html line 4
</html>
Så här ser dokumentet ut;
Citat:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="sdf.css" media="screen,projection" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>sdf</title>
</head>
<body>
<div id="menyx">
<ul id="meny">
<li id="active"><a href="xy.html" id="current">xy</a>
<ul>
<li><a href="xoxox.html">xoxoxo</a></li>
</ul>,</li> </div>
<ul id="f">
<li>massa text <a href="http://lank.se">lank.</a> blabla
<ul>
<li>1-2-3</li>
<li>x-y-z.</li>
<li>kruxx</li>
</ul></li>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="sdf.css" media="screen,projection" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>sdf</title>
</head>
<body>
<div id="menyx">
<ul id="meny">
<li id="active"><a href="xy.html" id="current">xy</a>
<ul>
<li><a href="xoxox.html">xoxoxo</a></li>
</ul>,</li> </div>
<ul id="f">
<li>massa text <a href="http://lank.se">lank.</a> blabla
<ul>
<li>1-2-3</li>
<li>x-y-z.</li>
<li>kruxx</li>
</ul></li>
</body>
</html>
Ändrat lite i texten, men kodningen ser exakt likadan ut.. Förstår inte alls,,,fått ner det från ca 19 fel till 7 + 1 varning. Ska inte body och html taggarna stängas eller vad är det frågan om.?.:/ Får det heller inte att fungera med åäö, funderar att ändra det för hand om det inte funkar sen, men är ändå konstigt, har använt exakt samma doctype charset-iso på andra sidor där allt fungerat utan problem.. Kanske inge bra att lämna sånt här till sista sekunden utan sömn..
Tack på förhand om nån har tid och lust att hjälpa till.