Re: Is ID a valid attribute of the <style> tag?

> Here is my question: Is ID a valid attribute of the <style> tag?

At least in XHTML, yes [1,2], and exactly b/c of the use case you
mentioned, for reference of in-document style rules.

> Two sources I trust say it is not.
>
> I guess this means that W3Schools.com and xhtml.com are incorrect?

That's why it's always better to be at /the/ source, I guess.


[1] http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_style
[2] http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_stylemodule

-- 
Jens Meiert
http://meiert.com/en/

Received on Monday, 9 June 2008 07:52:57 UTC