If you’re writing XHTML or want to ensure stricter XML compatibility, you can use <br />
and <hr />
(with a space before the slash).
That’s why some sources recommend it. But in regular HTML5, both <br>
and <br />
work the same. The space in <hr />
isn’t necessary but makes it slightly more readable.