Re: HTML or XHTML - why do you use it?

>    never use <!-- --> in <script> or <style>

I thought the compatibility guidelines strongly suggested using external
style sheets and scripts to avoid this issue, i.e. it is not glossed over.

>    explicitly include <tbody> elements

I don't understand this one.  Surely the DOM for an HTML table always contains
tbody's as tr is not allowed as a direct descendant of table, so a proper
DOM has to include tbody elements, and that is what gets styled.  (This
may well be a problem for fully tag soup browser, possibly NS4-, which make no
attempt to construct a proper parse tree.)

As a general principle, though, on the original question, I would suggest that
one should use the oldest version of HTML that is consistent with the content
of the document.  There may be issues with HTML 2.0, if CSS is to be used,
because of the change between P as a delimiter to P as a container, but 
many documents only need HTML 3.2.

Received on Tuesday, 7 January 2003 02:49:52 UTC