Great advice from about XHTML gotchas

There’s a great post on about getting XHTML markup right. A sampling:

  • Any styles defined on the body element should be defined on the html element also (or the style might not work)
  • When using createElement (instead of document.write) to add a DOM element, use createElementNS and specify the namespace as ""