DrDoc - 7:47 pm on Jul 3, 2013 (gmt 0)
You're contradicting yourself when it comes to html5: <br /> is perfectly legal in html5 (and xhtml5). Nothing harmful at all. In fact it's quite possible to write code that's both html5 and xhtml5 valid at the same time - it's called polyglot html5:
The only thing harmful is tag soup.
Yes, you are quite right. I meant it's harmful to send XHTML as text/html, since that's tag soup. (Traditionally, that's what we see a lot on here, even from seasoned coders -- XHTML 1.0 or 1.1 sent as text/html.)
If you are using HTML5 you are certainly free to use the optional
<tag /> syntax.
To further clarify -- only use (X)HTML 5 (with proper Content-Type) or HTML 4.01 -- do not use XHTML 1.x and the text/html Content-Type.