Why do I need the <br /> element here? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why do I need the <br /> element here?

17th Nov 2016, 5:11 AM
Róbert Godó
Róbert Godó - avatar
3 Answers
0
where do you need the <br/>?
17th Nov 2016, 5:58 AM
Junjie Gono
Junjie Gono - avatar
0
for line breaks. Single line insertion, without using the <P> </P> tag.
24th Mar 2017, 7:35 AM
Vidhi Kedia
Vidhi Kedia - avatar
0
Single Line Break Use the <br /> tag to add a single line of text without starting a new paragraph: <html> <head> <title>first page</title> </head> <body> <p>This is a paragraph.</p> <p>This is another paragraph. </p> <p>This is <br /> a line break </p> </body> </html> The <br /> element is an empty HTML element. It has no end tag
24th Mar 2017, 7:37 AM
Vidhi Kedia
Vidhi Kedia - avatar