If I were to ask why doesn't br have a closing tag? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

If I were to ask why doesn't br have a closing tag?

5th Aug 2016, 5:30 AM
Neema Roswe
4 Answers
+ 3
The closing and opening tags are like brackets around the content, the <br/> tag doesn't have any content in it, it can have content before it and content after it, but not in it, so it doesn't act like a bracket.
5th Aug 2016, 12:16 PM
Irene
Irene - avatar
0
BR tag doesnt have any content therefore it cannot have any associated opening and closing tags
9th Aug 2016, 11:15 PM
Skaulze
0
because its haven't open tag
28th Nov 2016, 9:04 PM
Salma Andal
Salma Andal - avatar
0
It doesn't have any content for it. All it does is make the rest of the text on a new line, therefore it does not need a closing tag.
5th Dec 2016, 11:07 PM
Command Enterprises
Command Enterprises - avatar