Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
寮 (ryo@social.076.ne.jp)'s status on Wednesday, 07-Dec-2022 21:09:18 JST寮 @udon @TerminalAutism Well, </br> is incorrect, it implies that there's an opening <br> tag somewhere, so a </br> should close it off.
In XHTML, it's either <br />, <br/>, or <br></br>, while <br> is invalid.
But since his code is HTML5, the valid way is either <br>, <br/>, or <br />, while <br></br> is invalid.
And in HTML4 it's only <br>.
For a deeper explanation and more tags of HTML5 vs XHTML:
https://stackoverflow.com/questions/1946426/html-5-is-it-br-br-or-br