W3C recommends putting a space before the closing tag in XHTML, because this would give a better backwards compability with some browsers, e.g. write
It's for Netscape 4.
I still include it out of habit, and my templating library will put them in for me anyway, but it's questionable whether it's really that important today.