0

Do we really need to set "/" in autoclosing tags like <br>? And what are these tags called which dont have ending tags?

25th May 2017, 8:00 PM
Itz_me_sandy_
Itz_me_sandy_ - avatar
3 Réponses
+ 12
Exactly the same question here, posted yesterday: https://www.sololearn.com/Discuss/413778/?ref=app
25th May 2017, 8:06 PM
Maz
Maz - avatar
0
No, it is not necessary to put a forward slash </> in autoclosing tags even some tags like <p> and <h> can work without ending tag(try yourself!) however this practice is good as it is easy to understand moreover it the code written so also become readable by XML compilers.
26th May 2017, 4:11 AM
Deepak Pandey
Deepak Pandey - avatar