|
|||
Validator Fehler und komm nicht drauf...
Hallo,
bekomme beim Validator immer wieder Fehler ausgeworfen und komm nicht drauf woher die rühren, vielleicht kann es mir ja jemand von Euch sagen: Der Codeabschnitt: Code:
<div id="navigation"> <ul> <li><a href="index.php">Startseite</a></li> <li><a href="ueber_uns_ueber.php" class="current">Über uns</a></li> <ul> <li><a href="ueber_uns_ueber_xxx.php">Über Verkehrsservice</a></li> <li><a href="ueber_uns_mitarbeiter.php">Mitarbeiter</a></li> <li><a href="ueber_uns_qualifikationen.php" class="subcurrent">Qualifikationen</a></li> </ul> <li><a href="leistungen.php">Leistungen</a></li> <li><a href="referenzen.php">Referenzen</a></li> <li><a href="kontakt_anschrift.php">Kontakt</a></li> <!--<ul> <li><a href="kontakt_anschrift.php">Anschrift</a></li> <li><a href="kontakt_anfahrt.php">Anfahrt</a></li> <li><a href="kontakt_impressum.php">Impressum</a></li> </ul>--> </ul> </div> Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> This page is not Valid XHTML 1.0 Strict! Code:
1. Error Line 25 column 13: document type does not allow element "ul" here; assuming missing "li" start-tag. <ul> ? 2. Error Line 30 column 13: document type does not allow element "li" here; missing one of "ul", "ol" start-tag. <li><a href="leistungen.php">Leistungen</a></li> The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). ? 3. Error Line 31 column 13: document type does not allow element "li" here; missing one of "ul", "ol" start-tag. <li><a href="referenzen.php">Referenzen</a></li> The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). ? 4. Error Line 32 column 13: document type does not allow element "li" here; missing one of "ul", "ol" start-tag. <li><a href="kontakt_anschrift.php">Kontakt</a></li> The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). ? 5. Error Line 38 column 12: end tag for "li" omitted, but OMITTAG NO was specified. </ul> You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". ? 6. Info Line 25 column 10: start tag was here. <ul> ...komm nicht drauf vielliecht weiss von Euch jemand weiter. Danke schon jetzt! Grüße Michael Geändert von letslounge (27.09.2006 um 09:39 Uhr) |
Sponsored Links |
|
||||
Wenn Du Listen verschachteltst, darf vor dem zweiten <ul> kein </li> kommen.
__________________
Informationen aus Koblenz-Metternich ----------------------------------- "Wissen heißt, Fragen zu erwerben." |
Sponsored Links |
Themen-Optionen | |
Ansicht | |
|
|