Alexander (HH): im ie unterbrochene Border - warum?

Beitrag lesen

Moin Moin!

http://www.bmw1502.de/test/index.html

Das ist zwar prinzipiell valides HTML, aber es gibt zwei ernsthafte Problemmeldungen vom w3c-Validator:

Nummer 1: Character Encoding mismatch!

The character encoding specified in the HTTP header (iso-8859-1) is different from the value in the <meta> element (utf-8). I will use the value from the HTTP header (iso-8859-1) for this validation.

Nummer 2:

NET-enabling start-tag requires SHORTTAG YES.

The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HMTL 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HMTL 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.

Insbesondere letzeres könnte Parser verwirren und für merkwürdige Ergebnisse sorgen. Die Encoding-Geschichte ist einfach nur inkonsistent, das sollte mal angeglichen werden. Im Zweifel eine der beiden Angaben einfach weglassen und die andere passend einstellen.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so".