Why we always use the br element in html after the input element line like <input type="text><br /> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why we always use the br element in html after the input element line like <input type="text><br />

26th Aug 2020, 7:11 PM
Sanay
2 Answers
+ 1
br => Break line. Check output for this.. <body> Hello world & hello <br> world </body>
26th Aug 2020, 7:45 PM
Jayakrishna 🇮🇳
0
br tag is used to break the line, If not using CSS, we may want to display input fields in new lines, So we use br tag, it's not mandatory.. for such purposes we should use CSS
26th Aug 2020, 7:34 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar