Which is the correct way to use the <br> tag for a line break in HTML?

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.