In fact, Place right before / is desired for compatibility sake, but I feel it only is smart for tags which have characteristics. So I would say both or , whichever pleases your aesthetics. You should not provide it with the XML declaration if making use of text/html, nevertheless the content might be otherwise valid XML (e.g. created from somet