Really, space just before / is preferred for compatibility sake, but I do think it only makes sense for tags which have characteristics. So I'd say both or , whichever pleases your aesthetics. You mustn't provide it by having an XML declaration if making use of text/html, even so the content may be if not valid XML (e.g. generated from something