0
What is the difference between </br> and <br /> in html
8 Réponses
+ 5
</br> is not a valid html tag.
<br/> is a valid html tag.
+ 6
most browsers are quite error tolerant
the most recent version to write it correctly is <br>.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br
+ 3
</br> is not valid while <br> is valid but not strict
but <br /> is the best and strict way of using line break for an empty tag
+ 2
Lisa but both </br> and <br/> does same. If </br> isn’t valid then why it works?
+ 2
Lisa tnx
+ 1
Easiest way : eliminating / in both cases.
+ 1
Break is a self closing Html tag. So typing it as <br/> is the best and easy way. NAIMUL HASAN