What is <br /> tag | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is <br /> tag

28th Jul 2017, 5:23 PM
Gitesh Pachpande
Gitesh Pachpande - avatar
6 Answers
+ 10
<br /> is a line break. it separated a code that showed in same line to a different line. just added an explain to @_Retr0/- answer
28th Jul 2017, 5:36 PM
Amethyst Animion
Amethyst Animion - avatar
+ 6
its line break tag for example : ⏩this is a line without line break tag //output : ⏩this is a line without line break tag now <br /> tag example: ⏩line with a <br />line break tag //output : ⏩line with a line break tag
28th Jul 2017, 5:27 PM
_Retr0/-
_Retr0/- - avatar
+ 2
it also gets us to new line
28th Jul 2017, 5:29 PM
Gitesh Pachpande
Gitesh Pachpande - avatar
+ 2
yup that's what it is
28th Jul 2017, 5:30 PM
_Retr0/-
_Retr0/- - avatar
+ 2
<br /> tag is used for single line breaks. Don 't use it to create paragraphs, however, use <p></p> in stead.
28th Jul 2017, 5:32 PM
Jan Moriaux
Jan Moriaux - avatar
+ 2
i advice u don't use it to creat new line for that we have the inblock tags like <p></p>. <br/> tag is reserved for the line break.
29th Jul 2017, 3:49 AM
Papa Daouda DIENE
Papa Daouda DIENE - avatar