<br> also works the same as <br/>? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

<br> also works the same as <br/>?

2nd Jul 2020, 9:01 AM
Harsh Kant
Harsh Kant - avatar
3 Answers
+ 16
Harsh K Yes You can use HTML br tag two ways: <br> or <br/>. It is recommended to use closed br tag <br/> because it is supported in HTML and XHTML both. </br>✨it means both of break line and new line <br>✨HTML <br> tag or element is used to break line in a paragraph.
2nd Jul 2020, 9:14 AM
💕₽ΔŘI💕
💕₽ΔŘI💕 - avatar
+ 1
Yes, both are the same.
2nd Jul 2020, 9:05 AM
Mohamed Salah
Mohamed Salah - avatar
+ 1
Yes they are the same
3rd Jul 2020, 3:25 PM
Youssef Tamer
Youssef Tamer - avatar