3 ms·
<br/> is an illegal/invalid tag in HTML. The space makes the slash into a simple invalid attribute of a br element, which the browser can ignore.
by stan_rogers 5y ago
<br/> is an illegal/invalid tag in HTML. The space makes the slash into a simple invalid attribute of a br element, which the browser can ignore.
- WorldMaker 5y agoThe HTML5 spec makes <br/> (without the space) valid in HTML5: https://dev.w3.org/html5/html-author/#void https://dev.w3.org/html5/html-author/#void Before that it was more "undefined" behavior than "illegal" as older HTML specs simply didn't consider it.