Have you guys tried this line break | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Have you guys tried this line break

Do you know that you can put the break up symbol like this </br> or <br/> it does the same work with the original one

31st Oct 2019, 10:13 AM
Edwin
Edwin - avatar
1 Answer
+ 1
For proper syntactic use, the second one "<br/>" is the correct method. This closing slash is also used in other elements that do not have their own closing tags, examples: <hr/> <img src="image.jpg" />
31st Oct 2019, 1:45 PM
Xyenia 🦉
Xyenia 🦉 - avatar