Posted by J.O. Aho on 02/01/07 12:56
fuli open wrote:
> I started to run the CSS validator on my files, and correct mistakes
> until getting the message of 'Congratulations'. But for one file I
> got the following message:
>
> quote
> W3C CSS Validator Results for http://www.pinyinology.com/wheel/
> fortune.html
>
> No error or warning found
>
> No style sheet found
> unquote
>
> the URL is: http://www.pinyinology.com/wheel/fortune.html
>
> It is possible that there is not error or warning. But there is a
> very long style sheet. I wonder whether the validator itself made a
> mistake. It found my file, but didn't do anything.
Could be so that the validator assumes your page is HTML4.01 and the xhtml you
are using makes it to miss the style definitions.
Either use:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
or
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
or
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
--
//Aho
[Back to original message]
|