Really, space ahead of / is most popular for compatibility sake, but I do think it only is smart for tags which have characteristics. So I would say either or , whichever pleases your aesthetics. To very clear up confusion: Placing a space ahead of the slash isn't really needed in HTML5 and would not make any variation to how the web page is ren