0

What is the reason for using <br /> over just <br>

11th Apr 2017, 3:21 AM
Rhyne Miller
Rhyne Miller - avatar
3 Respuestas
+ 5
In HTML (up to HTML 4): use <br>. In HTML 5: <br> is preferred, but <br/> and <br /> is also acceptable. In XHTML: <br /> is preferred. You can also use <br/>. The / is simply needed for the XML syntactic version.
11th Apr 2017, 3:29 AM
Deddy Tandean
+ 2
see my answer here. as already told it is to follow the syntax. some tags like <br> tag doesn't has closing tag in that case / is used in the end. https://www.sololearn.com/discuss/152499/?ref=app
11th Apr 2017, 6:15 AM
Sandeep Chatterjee
0
Thank you!
11th Apr 2017, 3:30 AM
Rhyne Miller
Rhyne Miller - avatar