Hab den Fehler gefunden.
Fehler erzeugte dieser Code:
HTML:
<div>
<img src="images/nav/..._<?=$forth_lang;?>.gif" alt="..." width="120" /></a>
</li>
</div>
Hab es so geändert
HTML:
<img src="images/nav/..._<?=$forth_lang;?>.gif" alt="..." width="120" /></a>
</li>
Obwohl das Div sauber gespeichert wurde erschien es auch korrekt, aber verrupfte das ganze Layout. Die Hyroglyphen sind immer noch da. Mach mich mal schlau wie ich dieses Lösen kann. Weiter muss ich den Markup noch mehr verbessern. Sieht schon aus, aber bei manchen sachen weiss ich auch nicht was ich da falsch gemacht habe. Z.B. bei folgenden:
Line 1, Column 1: character "ï" not allowed in prolog
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://ww…
Das Sieht bei mir so aus:
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
Error Line 2, Column 13: there is no attribute "XMLNS"
<html xmlns="http://www.w3.org/1999/xhtml">
Der Fehler:
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
Verstehe das nicht ganz. Wenn jemand lust hat mir bei der korrektur dieses Markups zu helfen wäre ich sehr dankbar.
gruss zyclop
Danke Maik, dieses mal habe ich gedacht ich hätte alles versucht, aber vor lauter bäumen habe ich den Validator total vergessen.
Hab den Fehler des Divs gefunden.
Ich habe das Div nach dem Link aber vor dem Bild gemacht. Darum sollte es so aussehen.
HTML:
<div>
<li><a onclick="window.open(this.href,'af','resizable=no,location=no,menubar=no,scrollbars=auto,status=no,toolbar=no,fullscreen=no,dependent=no,width=920,height=600,status'); return false" href="booking/">
<img src="images/nav/Ancona-Durres--Bari-Durres_<?=$forth_lang;?>.gif" alt="Ancona - Durres / Bari - Durres" width="120" /></a>
</li>
</div>
Vorher war es so
HTML:
<li><a onclick="window.open(this.href,'af','resizable=no,location=no,menubar=no,scrollbars=auto,status=no,toolbar=no,fullscreen=no,dependent=no,width=920,height=600,status'); return false" href="booking/">
<div>
<img src="images/nav/Ancona-Durres--Bari-Durres_<?=$forth_lang;?>.gif" alt="Ancona - Durres / Bari - Durres" width="120" /></a>
</li>
</div>
Das geht natürlich nicht :S