HTML 5: Is it <br> <br/> or <br />?

Posted by Eikern on Stack Overflow See other posts from Stack Overflow or by Eikern
Published on 2009-12-22T13:39:08Z Indexed on 2010/04/04 16:53 UTC
Read the original article Hit count: 384

Filed under:
|

I've tried checking other answers, but I'm still confused--especially after seeing W3schools HTML 5 reference.

I thought HTML 4.01 was supposed to "allow" single-tags to just be <img> and <br>. Then XHTML came along with <img /> and <br /> (where someone said that the space is there for older browsers).

Now I'm wondering how I'm supposed to format my code when practicing HTML 5.

<!DOCTYPE HTML>

Is it <br>, <br/> or <br />?

© Stack Overflow or respective owner

Related posts about html5

Related posts about coding-style