Can I use </br> instead of <br/> ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson

Can I use </br> instead of <br/> ?

May that cause some problems using XHTML?

13th Jul 2018, 8:37 AM
Семён - avatar
6 Answers
+ 5
based on current w3c recommendations just <br> should be used
13th Jul 2018, 3:21 PM
Morpheus - avatar
+ 3
No, there is no </br>, incorrect syntax.
13th Jul 2018, 10:50 AM
Calviղ - avatar
+ 2
</br> has sense within xml context. It's interesting that some html browsers treat </br> as <br>, while other just ignore this.
13th Jul 2018, 11:07 AM
Микола Федосєєв
Микола Федосєєв - avatar
+ 2
HTML5 standard is <br>. However, Ract.js is <br />, closing tag is required for every tags in React.js
13th Jul 2018, 3:46 PM
Calviղ - avatar
+ 1
FYI - br and b are not the same thing probably a typo though
13th Jul 2018, 8:39 AM
Janning⭐ - avatar
"<br/>" is the same as "<br></br>".
13th Jul 2018, 9:24 AM
Микола Федосєєв
Микола Федосєєв - avatar