Basically, Area ahead of / is chosen for compatibility sake, but I believe it only is smart for tags which have characteristics. So I might say either or , whichever pleases your aesthetics. To very clear up confusion: Placing a space prior to the slash isn't demanded in HTML5 and would not make any change to how the webpage is rendered (if any