• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

[ERLEDIGT] [(X)HTML-Validator] Was bedeutet dieser Error ?

Status
Für weitere Antworten geschlossen.
Das zählt doch auch als
HTML:
<html>
,oder?

:

HTML:
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
 
Werbung:
Mittlerweile hab ich die Fehler reduzieren können.
Der Englische Validator, validateds mir aber immer noch nicht.

Folgender Fehler:

Im Element a ist das Attribut `onMouseover` nicht erlaubt.

HTML:
<a href="index.html" onMouseover="austausch.src='slices/Bilder/homeeffekt.png';" onMouseout="austausch.src='slices/Bilder/home.png'"><img src="slices/Bilder/home.png"  border="0" name="austausch" alt="home" /></a><br />

Sondern? Wie soll man das sonst machen? :p
 
Werbung:
So,
jetzt sagt er mir noch das:

Code:
[I]Line 5, Column 40[/I]: delimiter "/" invalid: only S separators and TAGC allowed here.
<title>TrackMania Nations Fans</title [B]/[/B]>
und das:

Code:
<head[B]>[/B] 
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).

Und wie muss ich ein DIV denn nun schließen?
 
Werbung:
Danke jetzt klappts!

Wenn man ein php File hat, kann man es nur übern Upload validieren lassen, richtig?
Und ein HTML File, ist beides möglich?
 
Ich steig durch die ganzen fehler nicht durch.
Ich meine aber auch, gar keine mehr zu haben:

Code:
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "[URL]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd[/URL]">
      <html xmlns="[URL="http://www.w3.org/1999/xhtml"]XHTML namespace[/URL]" lang="en" xml:lang="en">
<head>
  <title>TrackMania Nations Fans</title>
<!-- *CSS* -->
  <link rel="stylesheet" href="style1.css" type="text/css" media="all" />
<!-- *Navi2* -->
<div id="wrapper">
<div id="menu">
<div class="content">
<div class="divstyle">
<div class="header">Site Links</div>
</div>
</div>
</div>
<!-- *Navi1* -->
<div id="menu2">
<div class="content">
<div class="divstyle">
<div class="header">Allgemein</div>
LINKS
</div>
</div>
</div>
<!-- *mainnavi+banner* -->
<div id="main">
<div id="sitebanner">
<div id="logo1"><img src="index.png" alt="Banner" border="0" height="122" width="570" /></div />
<div id="navbar"><!-- Sitelinks (1) -->
:: <a href="index.php?home">HOME</a>
:: <a href="index.php?impressum">IMPRESSUM</a>
:: <a href="<A href="http://www.guestbook-free.com/books3/tmnfteam/">THE">http://www.guestbook-free.com/books3/tmnfteam/">THE BOOK</a>
::
<!--- end Site Links --></div />
</div>
<!-- *content* -->
<div id="content">
<div class="content">
<div class="divstyle">
<script language="php"> readfile("home.html"); </script>
</div>
</div>
</div>
</div>
Vielleicht findet ihr ja noch Fehler.:lol:
 
Danke jetzt klappts!

Wenn man ein php File hat, kann man es nur übern Upload validieren lassen, richtig?
Und ein HTML File, ist beides möglich?

Du musst HTML-Code validieren lassen - NICHT PHP-Code. Also auch nicht den Inhalt einer php-Datei sondern den Quellcode den der Browser beim Aufruf der Seite zu sehen bekommen (Ansicht > Seitenquelltext im Browser).

@Furien: da fehlt erstmal jegliche HTML-Struktur. Wo ist dein head? Wo beginnt dein body? Schau dir die Vorlagen bei selfhtml nochmal genau an.
 
Werbung:
Ebend sagt er mir noch ich soll </body/> und </html> so schreiben:
<body/> und </html/>.
Und wenn ich es geänert hab' sagt er wieder, dass ich es wie gewohnt schreiben soll d.h. </...>.

Habt ihr eine Erklärung dafür?

Dann kommt mir noch das komisch vor:
Code:
[I]Line 11, Column 0[/I]: start tag was here.
[B]<[/B]div id="wrapper">

Das:
Code:
[I]Line 45, Column 72[/I]: document type does not allow element "html" here.
…ww.w3.org/1999/xhtml" lang="en" xml:lang="en"[B]>[/B][URL="http://validator.w3.org/feedback.html?uri=http%3A%2F%2Ftmnationsfans.tm.ohost.de%2F;errmsg_id=64#errormsg"][COLOR=#0000ff]✉[/COLOR][/URL] 
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).

Und Das:

Code:
[I]Line 43, Column 8[/I]: "DOCTYPE" declaration not allowed in instance.      <![B]D[/B]OCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
Das sind soweit alle Errors, die ich habe *frohsei*.Hoffe, dass ihr mir helfen könnt was die Errors bedeuten und wie ich sie beheben kann.
 
Werbung:
Nimm Transitional.

Body und Head werden ganz normal mit </body> und </head> geschlossen, die Tags werden ja auch irgendwann mal geöffnet und es steht auch was dazwischen
=> nicht inhaltsleer.
 
Hm..

Ich hab eine php Datei in der ist HTML und PHP drin, wie validier ich da nur den HTMl Code?
Der php Code, hat ja auch bisl HTML drinnen, nur halt immer mit dem echo'' runderhum...!?
 
Hm..

Ich hab eine php Datei in der ist HTML und PHP drin, wie validier ich da nur den HTMl Code?
Der php Code, hat ja auch bisl HTML drinnen, nur halt immer mit dem echo'' runderhum...!?

Wenn die Datei auf einem Webserver liegt, gibst Du dem Validator einfach die URL an (Webserver liefert ja nur HTML aus). Wenn du noch auf dem eigenen Rechner am testen bist, dann ruf die Seite im Browser auf, speichere diese als HTML-Seite und lade sie auf den Validator hoch.

Gruß thuemmy
 
Werbung:
Dieser bescheuerte Validator:evil:.
Er sagt mir das:
Code:
[I]Line 89, Column 6[/I]: end tag for "div" omitted, but OMITTAG NO was specified.
</body[B]>[/B][URL="http://validator.w3.org/feedback.html?uri=http%3A%2F%2Ftmnationsfans.tm.ohost.de%2F;errmsg_id=70#errormsg"][COLOR=#0000ff]✉[/COLOR][/URL] 
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

Und davor hat er noch gesagt, dass ich body so : </body>
schließen soll.

Ist der Validator blöd oder so???
 
Werbung:
machts euch doch nicht so umständlich. Nehme doch einfach HTML 4.0 da gehts. Würe dann so für Transitional HTML 4.0 aussehen (ohne DTD strict):

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

und den rest mit head, usw. kennst du ja. Brauche ich sicherlich nicht mehr hinschreiben ;-)
 
Status
Für weitere Antworten geschlossen.
Zurück
Oben