Essentially, space just before / is chosen for compatibility sake, but I feel it only makes sense for tags that have attributes. So I would say either or , whichever pleases your aesthetics. As usually Now we have also preset bugs from the specification, ensuring that it adapts on the switching reality of the internet. "HTML5 isn't XML, so it