Great advice from xml.com about XHTML gotchas

There’s a great post on xml.com 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 "http://www.w3.org/1999/xhtml"
Print Friendly, PDF & Email