Actually, Place right before / is desired for compatibility sake, but I feel it only is smart for tags that have attributes. So I'd say either or , whichever pleases your aesthetics. You shouldn't provide it with the XML declaration if making use of text/html, but the written content may be in any other case valid XML (e.g. produced from somethi