W3C home > Mailing lists > Public > www-validator-css@w3.org > March 2005

HTML-Document including <style> is not validated

From: <michseif@web.de>
Date: Thu, 24 Mar 2005 10:41:26 +0100
Message-Id: <901535877@web.de>
To: www-validator-css@w3.org

I tried to validate the following HTML-document with the CSS-Validator (CSS 2.0):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN"
         "http://www.w3.org/TR/html4/strict.dtd">
<html>
 <head>
  <title>peter-breuer-gymnasium</title>
  <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  <meta http-equiv="content-style-type" content="text/css">
  <link rel="stylesheet" type="text/css" href="michistyle.css">
  <style type="text/css">
    img { border-style:none; vertical-align:bottom; }
  </style>
 </head>
 <body>

........

I get this error message:

Zeile: 10

Parse error - Unrecognized : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>peter-breuer-gymnasium</title> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="content-style-type" content="text/css"> <link rel="stylesheet" type="text/css" href="michistyle.css"> <style type="text/css"> img { border-style:none; vertical-align:bottom; } 


If I toss the style definition out, everything's fine. But I can't find any errors in this small definition. So what's the problem?

     brain
__________________________________________________________
Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
weltweit telefonieren! http://freephone.web.de/?mc=021201
Received on Thursday, 24 March 2005 12:55:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:15 GMT