Hallo Utz,
also, Kollegen der Ratekunst, irgendwie sind wir schon sehr auf dem Holzweg gewesen, was unsere Leskunst der Spec betrifft.
Ohne HTML, HEAD und BODY mault der Validator nämlich.
[Invalides- und Valides HTML]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<title>Test</title>
</head>
<p>Hallo!</p>
</body>
</html>
Ergibt: Congratulations, this document validates as HTML 4.01 Strict!
Also, das Minimum ist wohl:
- <title>...</title>
- mind. 1 Body-Container, z.B. <p>..</p>
- die _abschließenden_ Tags </head>, </body> und </html>
Also, das erkläre mir doch jetzt bitte mal ein Fachmann/-frau!
Ich bin zwar kein Fachmann und schon gar keine Fachfrau, aber folgendes finde ich am interressantesten:
ource Listing
#*************************************
Below is the source input I used for this validation:
1: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2: "http://www.w3.org/TR/html4/strict.dtd">
3: <title>titel</title>
4: <p>Body</p>
Parse Tree
You can also view this parse tree without attributes by selecting the appropriate option on the form.
<HTML>
<HEAD>
<TITLE>
titel
</TITLE>
</HEAD>
<BODY>
<P>
Body
</P>
</BODY>
</HTML>
#**********************************
Gruß Alex