0
What is the reason for using <br /> over just <br>
3 Antworten
+ 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.
+ 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
0
Thank you!