Is it compulsory to add "/" after br tag in html. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is it compulsory to add "/" after br tag in html.

Whenever I make a Web page and I add "br" tag in it i always forgot to add "/" sign but I don't see any problem because of this.

15th Jun 2017, 2:40 PM
Rohan Bhardwaj
Rohan Bhardwaj - avatar
5 Answers
+ 2
No, You can use br tag as <br>
21st Jun 2017, 5:17 AM
Vishwajeet
Vishwajeet - avatar
+ 1
in html 5 u don't need to close the empty tags.. it is acceptable without the backslash
15th Jun 2017, 3:00 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
HTML5 had change a lot of things. Like the slash that you mention. But try not to forget it. It's not a good habit, your code will be ugly to the senior or architect developers that will saw your portfolio...
15th Jun 2017, 3:22 PM
Elias Papachristos
Elias Papachristos - avatar
0
browsers takes care of it. because HTML is case insensitive. u can use HTML tags in upper case or Lowe case.
15th Jun 2017, 2:44 PM
meherDev
meherDev - avatar
0
that states the end of the break statement
15th Jun 2017, 2:50 PM
Leon D
Leon D - avatar