why do i need the break line tag? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why do i need the break line tag?

<html> <head> <title>Attributes</title> </head> <body> <p align="center">This is a text <br /> <hr width="10%" align="right" /> This is also a text. </p> </body> </html> I just wanted to take the <br /> tag out to see what happened and it didn't appear to make a difference. I hope that's the right name trying to remember all the terms still, but can someone try to explain to me again in where I would use it I read about it in the course I guess I just don't understand it still..

5th Nov 2018, 1:59 AM
Jeremy
1 Answer
+ 3
Because the hr tag (originally designed to create a horizontal rule, but now used for thematic break), automatically adds a line break in absence of the br tag. Also, it appears that you've posted this question twice. https://www.sololearn.com/Discuss/1574346/?ref=app Please remove one of them. Thanks!
5th Nov 2018, 2:36 AM
Kishalaya Saha
Kishalaya Saha - avatar