|
|||
Validierungsprobleme bei XHTML 1.0 Strict
Hi,
habe mal wieder Probleme.... hier ist das Ergebnis des Validators: Ergebnis Ich weiß nicht, wie man diese Fehler behebt. Kann mir jemand dabei helfen? Der Quellcode ist auch hinter dem Ergebnis zu sehen. Die ersten vier Fehler habe etwas mit der Uhr zu tun, die über Javascript läuft. Wie kann man es so ändern, dass die Uhr noch weiterläuft? Danach wiederholen sich die Fehler, aber ich weiß auch nicht, wie ich das beheben kann.... Für ne kleine Code-änderung wäre ich sehr dankbar, gruß Tokuul! [edit] Unten das Problem...
__________________
Wissen ist Macht, nichts wissen macht auch nichts |
Sponsored Links |
|
||||
Das Attribut »language« existiert in der von dir gewählten Sprachversion nicht — wirf es raus, schreib aber das Attribut »type« rein.
Attributnamen müssen in XHTML durchgängig klein geschrieben werden, also: »onload«, nicht »onLoad«. Das ist übrigens ein bescheuerter Eventhandler: Der verzögert die Darstellung des Dokumentes enorm, weil der Browser erstmal abwarten muß, ob dein Script den Dokumentenbaum ändert. Wirf die Uhr einfach raus, du verbrätst damit nur die Ressourcen deiner Leser, die alle selber schon eine Uhr haben. In der Hitliste sinnloser Scripts steht dieses sehr, sehr weit oben. <a> ist ein Inline-Element und darf keine Blockelemente enthalten. Nimm das <div> raus. Der Wert des Attributes »id« darf sich auf einer Webseite niemals wiederholen; nimm statt dessen Klassen. Was der Validator nicht findet, aber dennoch falsch ist: Du lieferst dein Dokument als »text/html« an Browser aus, die explizit »application/xhtml+xml« verstehen und verlangen. Damit hast du einen invaliden Mimetypen; das ist genauso falsch wie invalides Markup. Bitte bemühe die Forumssuche, um herauszufinden, wie du das in Ordnung bringst. Es gibt hier ein paar gute Hinweise zu diesem Thema. Gruß Thomas
__________________
toscho.de |
Sponsored Links |
|
|||
Zitat:
Die Uhr is weg^^ Aber was muss ich noch ändern, damit es bei dem "class" genauso angezeigt wird wie bei "id"? Ja, ich schaue mal Was ist denn das jetzt? Zitat:
Aber in dieser Diskussion haben doch alle das selbe wie ich!? Ach, dazu noch den code: Code:
#tdnew { width : 708px; height : 100px; background : #fffac4; border-color : #000000; border-style : solid; border-spacing : 0; border-width : 1px; } #tdspace_l { width : 4px; height : 21px; border-color : #000000; border-bottom-style : solid; border-bottom-width : 1px; } #tdspace { width : 4px; height : 21px; border-width : 0px; } #tdsym1 { width : 21px; height : 21px; background-image : url(warning.gif); background-repeat : no-repeat; background-position : 50% 50%; border-color : #000000; border-spacing : 0; border-bottom-style : solid; border-bottom-width : 1px; } #tdsym2 { width : 21px; height : 21px; background-image : url(note.gif); background-repeat : no-repeat; background-position : 50% 50%; border-color : #000000; border-spacing : 0; border-bottom-style : solid; border-bottom-width : 1px; } #tdtitle { width : 679px; height : 21px; text-align : left; border-color : #000000; border-spacing : 0; border-bottom-style : solid; border-bottom-width : 1px; } #tdtopic { width : 700px; height : 31px; text-align : left; border-color : #000000; border-bottom-style : solid; border-bottom-width : 1px; } #tdempty { width : 708px; height : 5px; border-width : 0px; } #tdempty_l { width : 4px; height : 17px; border-color : #000000; border-top-style : solid; border-top-width : 1px; } #tdcontent { text-align : left; width : 700px; text-align : left; border-width : 0px; } #tdstats { width : 700px; height : 17px; text-align : right; border-color : #000000; border-top-style : solid; border-top-width : 1px; }
__________________
Wissen ist Macht, nichts wissen macht auch nichts |
|
|||
Ah, danke. Das mit den Punkten wusste ich nicht
Super, mit der vereinfachung^^! Aber noch ein Fehler, den ich nicht verstehe: Zitat:
Ergebnis 2 das kann doch nicht sein!?! Dann noch ne Frage: Kann man dies auch noch vereinfachen/verbessern? Code:
#main { width : 976px; height : 865px; padding : 5px; margin-left : auto; margin-right : auto; background : #8b4513; border : 1px solid #fffac4; text-align : left; z-index : 0; } #pfad { width : 948px; height : 17px; padding : 1px; padding-left : 3px; padding-right : 3px; margin-left : auto; margin-right : auto; margin-top : 10px; background : #fffac4; border : 1px solid #000000; text-align : left; z-index : 1; } #time { width : 948px; height : 17px; padding : 1px; padding-left : 3px; padding-right : 3px; margin-left : auto; margin-right : auto; background : #fffac4; border : 1px solid #000000; text-align : right; z-index : 1; } #menu { float : left; padding : 0; margin-left : 10px; margin-right : auto; margin-top : 15px; background : #fffac4; border : 0 none inherit; text-align : center; z-index : 1; } #arrow { float : left; width : 15px; height : 14px; padding : 3px; margin-left : auto; margin-right : auto; margin-top : 15px; background : #fffac4; border : 1px solid #000000; text-align : left; z-index : 1; } #titel { float : left; margin-left : auto; margin-right : auto; margin-top : 15px; background : #fffac4; border : 0 solid inherit; text-align : left; z-index : 1; } #poll { width : 100px; height : 50px; float : right; padding : 0; margin-right : 10px; margin-top : 15px; background : #fffac4; border : 1px solid #000000; text-align : center; z-index : 1; } #login { width : 100px; height : 80px; float : right; padding : 0; margin-right : 10px; margin-top : 15px; background : #fffac4; border : 1px solid #000000; text-align : center; z-index : 1; } #links { width : 100px; height : 150px; float : right; padding : 0; margin-right : 10px; margin-top : 15px; background : #fffac4; border : 1px solid #000000; text-align : center; z-index : 1; } #bottom { width : 948px; height : 17px; float : left; padding : 1px; padding-left : 3px; padding-right : 3px; margin-left : auto; margin-left : 10px; margin-top : 15px; background : #fffac4; border : 1px solid #000000; z-index : 1; } #tdmenu { width : 100px; background : #fffac4; text-align : left; border-color : #000000; border-style : solid; text-align : left; border-spacing : 0; border-width : 1px; border-top-width : 0; } #tdstart { background : url(source/images/mnu_startseite.png) no-repeat 50% 50%; height : 22px; border-top : 2px solid #000000; border-bottom : 1px solid #000000; } #tdinfo { background : url(source/images/mnu_information.png) no-repeat 50% 50%; height : 22px; border-top : 2px solid #000000; border-bottom : 1px solid #000000; } #tdcomm { background : url(source/images/mnu_community.png) no-repeat 50% 50%; height : 22px; border-top : 2px solid #000000; border-bottom : 1px solid #000000; } #tddown { background : url(source/images/mnu_downloads.png) no-repeat 50% 50%; height : 22px; border-top : 2px solid #000000; border-bottom : 1px solid #000000; } #tdallg { background : url(source/images/mnu_allgemein.png) no-repeat 50% 50%; height : 22px; border-top : 2px solid #000000; border-bottom : 1px solid #000000; }
__________________
Wissen ist Macht, nichts wissen macht auch nichts |
|
||||
Zitat:
Zitat:
Mario |
|
||||
Zitat:
Ah ja, stimmt. Das ist schonmal nicht wenig.
__________________
Wissen ist Macht, nichts wissen macht auch nichts |
|
||||
Zitat:
Zitat:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd Mario |
|
|||
Zitat:
Was soll ich denn sonst schreiben, damit en neues fenster geöffnet wird?
__________________
Wissen ist Macht, nichts wissen macht auch nichts |
Sponsored Links |
|
||||
Zitat:
Zitat:
Und bitte zitiere nur die wesentlichen Teile, nicht den kompletten Beitrag, sonst antwortet dir bald niemand mehr, um kein neues Vollzitat zu provozieren. Gruß Thomas
__________________
toscho.de |
Sponsored Links |
Themen-Optionen | |
Ansicht | |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
IE6 und transparente Hintergrundbilder (XHTML 1.0 Strict) | opa-rudi | CSS | 1 | 11.11.2008 12:59 |
html 4.01 > xhtml 1.0 strict / ie Problem | ringelwürmsche | (X)HTML | 8 | 09.10.2008 19:38 |
XHTML 1.0 strict: interpretation von alt und title (IMG) vom IE7, Opera und Firefox | braindead | (X)HTML | 5 | 11.03.2007 17:57 |
XHTML 1.0 Transitional VS. Strict | Despairing | (X)HTML | 24 | 07.06.2006 21:07 |
XHTML 1.1 oder XHTML 1.0 strict verwenden | laborix | (X)HTML | 2 | 11.12.2005 21:10 |