Vinzenz Mai: Verständnisproblem bei Validator-Fehlermeldungen

Beitrag lesen

Hallo,

<!doctype html>

</html>


>   
> Der [Validator auf w3.org](http://validator.w3.org) sagt:  
> Line 1, Column 2: Not a name start character, U+21  
> <!doctype html>  
>   
> Was bedeutet das?  
  
ein Fehler im experimentellen Validator für HTML5:  
Wird doctype groß geschrieben, d.h. als "DOCTYPE", validiert Dein Code.  
  
Dies steht im Widerspruch zum derzeitigen Working Draft für HTML5, unter [8.1.1 DOCTYPE](http://www.w3.org/TR/2011/WD-html5-20110525/syntax.html#the-doctype) kann man nachlesen:  
  
<zitat>  
A DOCTYPE must consist of the following components, in this order:  
1) A string that is an ASCII case-insensitive match for the string "<!DOCTYPE".  
[...]  
</zitat>  
  
Was Dir wichtiger ist, musst Du selbst entscheiden.  
  
  
  
Freundliche Grüße  
  
Vinzenz