+ 1

"<br>,</br>,<br/>,<br />" All are same, why?

1st Jan 2017, 2:52 PM
Deep chand
Deep chand - avatar
2 Answers
+ 4
Yes, because some tags don't have closing tags, you can use <br/> or <br>. also on <img/>.
1st Jan 2017, 3:00 PM
Nahuel
Nahuel - avatar
+ 1
Some HTML Tags do not have Closing Tags. Why? Well... we do not know. The Creators never outlined the proper reasons... But just think of it as: " If it's a simple thing, then we don't need double tags! " Hence, 'New Line' = <br> or </br> or etc.
1st Jan 2017, 3:05 PM
ghostwalker13
ghostwalker13 - avatar