One that I know, but there may be more: in HTML, body is the size of the entire viewport, even if it's empty. In XHTML, it's just like any other block level elements and takes on the dimensions of its content (and if you float everything in the body, it effectively is 0 pixels high). If you define a background colour just in the body, in XHTML it may not cover the entire viewport of your browser if the content is shorter than the viewport itself...so you should apply background colour etc to the HTML element instead

Patrick

John Horner wrote:
Can anyone explain what this means in that article?

 * A CSS stylesheet written for an HTML4 document is interpreted
   slightly differently in an XHTML context (e.g. the <body> element
   is not magical in XHTML


In what ways might <body> be "magical"?

------------------------------------------------------------
               "Have You Validated Your Code?"
John Horner                            (+612 / 02) 9333 2110
Senior Developer, ABC Online          http://www.abc.net.au/
------------------------------------------------------------

******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************





-- _____________________________________________________ re·dux (adj.): brought back; returned. used postpositively [latin : re-, re- + dux, leader; see duke.] www.splintered.co.uk | www.photographia.co.uk http://redux.deviantart.com

******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************



Reply via email to