Martin Hölter: meta http-equiv="Content-Style-Type" Pflicht bei inline-Styles?

Beitrag lesen

Hallo Forum!

Ich habe gerade einmal den CSE HTML Validator ausprobiert und er spuckte mirt folgende Warnung entgegen:

The "style" attribute has been used but a default style sheet language has not been defined (note that HTML Validator would not see this declaration if it is sent as an HTTP header by a web server). HTML 4.01 and XHTML require this for valid documents. For example, include this in the "head" section of your document to specify "text/css" as the default style sheet language: <meta http-equiv="Content-Style-Type" content="text/css">. See http://www.w3.org/TR/html4/present/styles.html#default-style If you are using HTML Validator's integrated editor, then you can add this from the Tags menu and/or from the Tag Inserter.

<h2 style="margin-top:0;">B&ouml;rsen aktuell</h2>

Heisst das etwa, dass man inline-Styles nur mit einer entsprechender meta-Angabe (bzw. entspr. Header) zur Default-Stylesprache benutzen darf/sollte?

Der Valligator und der Selfhtml-Validator haben die Seite problemlos validiert.

Gruß

Martin