Hallo!
Ich habe ein Dokument, welches XHTML 1.0 (Strict)-kompatibel ist, aber nicht HTML 4.01 (Strict)-kompatibel. Manchmal finde ich den W3C-Validator ohnehin etwas seltsam, aber das hat mich nun doch etwas gewundert. Folgender Output des Validators:
-----------------------
Line 6, column 53: character data is not allowed here
<meta name="author" content="Michael Brückner" />
You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>) or forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes).
-----------------------
Offensichtlich stört ihn der Slash, der aber zur XHTML-Kompatibilität notwendig ist. Beim "<br />"-Tag stört sich der Validator ja auch nicht oder muss ich damit leben, dass es beim "<meta>"-Tag keine Schreibweise für beide Versionen gibt?
Vielen Dank schon mal!
Haefti