Basically, House right before / is preferred for compatibility sake, but I do think it only makes sense for tags that have attributes. So I might say either or , whichever pleases your aesthetics. To distinct up confusion: Placing a space before the slash is not essential in HTML5 and would not make any variance to how the webpage is rendered (i