zurück zur Startseite
  


Zurück XHTMLforum > (X)HTML und CSS > Site- und Layoutcheck
Seite neu laden Validator Problem

Antwort
 
LinkBack Themen-Optionen Ansicht
  #1 (permalink)  
Alt 04.10.2004, 14:13
Neuer Benutzer
neuer user
Thread-Ersteller
 
Registriert seit: 03.10.2004
Beiträge: 3
Starfox128 befindet sich auf einem aufstrebenden Ast
Standard Validator Problem

Hi,

will mich jetzt (und in nächster Zeit) XHTML widmen, hab meine Seite dem HTML Validator unterzogen, drei Fehler bekomm ich aber nicht weg.

Validatortest

Zitat:
Line 51, column 23: document type does not allow element "body" here

<body bgcolor="#d7d3d3">

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

Zitat:
#

Line 81, column 392: there is no attribute "onClick"

..."c1" target="_self" href="#" onClick="PopUP=window.open('http://68114.netgues

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.
Hier ist mir der Fehler zwar klar, ich möchte das aber so haben mit einem Popup. Gibts da (eine) Alternative(n)?


Zitat:
Line 95, column 6: end tag for "html" which is not finished

</html>

Most likely, You nested tags and closed them in the wrong order. For example

[i]...</p> is not acceptable, as [i] must be closed before

. Acceptable nesting is:

...</p>

Another possibility is that you used an element (e.g. 'ul') which requires a child element (e.g. 'li') that you did not include. Hence the parent element is "not finished", not complete.
Hier ist mir der Fehler unklar, es scheint zwar etwas mit falscher Reihenfolge zu tun zu haben, aber ich verstehs nicht.
Mit Zitat antworten
Sponsored Links
  #2 (permalink)  
Alt 04.10.2004, 14:41
Benutzerbild von Gumbo
XHTMLforum-Kenner
 
Registriert seit: 22.08.2004
Ort: Trier
Beiträge: 2.733
Gumbo ist jedem bekanntGumbo ist jedem bekanntGumbo ist jedem bekanntGumbo ist jedem bekanntGumbo ist jedem bekanntGumbo ist jedem bekannt
Standard

Zu den Problempunkten]]][/list]
Mit Zitat antworten
Sponsored Links
  #3 (permalink)  
Alt 04.10.2004, 15:43
Erfahrener Benutzer
XHTMLforum-Kenner
 
Registriert seit: 24.05.2004
Beiträge: 1.176
terrikay befindet sich auf einem aufstrebenden Ast
Standard

Zusätzlich noch: Warum bestimmst Du die Hintergrundfarbe im Body mit HTML? Gehört klar in die CSS.
Das Gleiche bei den Tabellenzellen.

Und generell: Warum XHTML und dann Tabellenaufbau der Seite?
Da ist nix von Trennung von Inhalt und Layout zu sehen - die Grundlage modernen Codens.
Mit Zitat antworten
  #4 (permalink)  
Alt 04.10.2004, 15:44
Neuer Benutzer
neuer user
Thread-Ersteller
 
Registriert seit: 03.10.2004
Beiträge: 3
Starfox128 befindet sich auf einem aufstrebenden Ast
Standard

Beschäftige mich halt noch nicht so lang damit, von daher kenn ich mich eben nicht so aus.

EDIT: Ist XHTML und Tabellenaufbau denn schlecht?
Mit Zitat antworten
Antwort

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus



Alle Zeitangaben in WEZ +2. Es ist jetzt 04:00 Uhr.