Really, Place just before / is most well-liked for compatibility sake, but I feel it only makes sense for tags that have attributes. So I would say both or , whichever pleases your aesthetics. To obvious up confusion: Putting a space ahead of the slash is just not essential in HTML5 and doesn't make any variance to how the web site is rendered (