Re: no attributes in 4.01 Strict?

On Fri, 10 Nov 2000, chris garaffa wrote:

> *Line 9, column 15:
>    <body bgcolor="black" text="white">
>                  ^
> Error: there is no attribute "BGCOLOR"
[etc.]

> However, the page validates with Transitional. Is this an error with the
> validator, because it seems strange that the parser wouldn't allow these
> common attributes. Thanks.

No, the validator is quite correct. These attributes do not exist in HTML
4.01 Strict. Presentational information should be provided by style
sheets. See the comment at the top of
<http://www.w3.org/TR/html40/sgml/loosedtd.html>.


Tim Bagot

Received on Friday, 10 November 2000 11:31:02 UTC