I'm working with the w3c's css validator. The validator will take an html page & check all it's inline, embedded & linked CSS.

My question is - is it safe to validate all my css separately (validate the inline / embedded css without the linked css being available etc)?

To ask this another way - is there anything the validator can error check better when all the elements of the css for a page are validated together?

有帮助吗?

解决方案

The W3C validator only checks the syntax of your markup so it is fine to check CSS rules separately.

其他提示

I dont think there is anything that the validator could say better with all the files at once, except maybe that some of your classes or Id's in your html do not have styles in your CSS, but thats perfectly valid anyway. On a side note, why are you so worried that your page is perfectly valid?

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top