On 27 Nov 2006, at 14:48:38, Philippe Wittenbergh wrote:


On Nov 27, 2006, at 11:14 PM, Nick Fitzsimons wrote:

Sounds logical. However, I am using IDs on the body to give, among other things, different bg images to site sections. Can I give the HTML element an ID instead? I just never heard of doing this type of thing to that element.


Afraid not, the HTML element can only have lang and dir attributes:
<http://www.w3.org/TR/html4/struct/global.html#edef-HTML>

This only applies to HTML 4.01 and XHTML 1.1.
XHTML 1.0 allows for the id attribute on HTML.

You're right, although this was introduced in the 2002 revision of XHTML 1.0, and breaks the principle that XHTML 1.0 is a reformulation of HTML 4.01. Thanks for pointing it out; I'll have to remember to check both DTDs in future :-)

Regards,

Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/





*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to