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"
Trackback URL
Leave your own comments about this post:
You must be logged in to post a comment.