Why it is a good practice to write "<br />", instead of "<br/>"? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why it is a good practice to write "<br />", instead of "<br/>"?

Why do we need to add a space? I saw that it is not necessary, but most of the people do this.

29th May 2016, 6:03 PM
Tudor Gălățan
Tudor Gălățan - avatar
2 Answers
+ 3
I guess it is just a convention to make the markup better readable. the image tag is also closed with a space usually. <img />
29th May 2016, 8:43 PM
James Flanders
0
Kinda like putting tabs so the tags arent all stacked up its just so it can be read better
31st May 2016, 3:06 PM
PiplupSupreme
PiplupSupreme - avatar