What does <br> mean? what would I use it for? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What does <br> mean? what would I use it for?

I'm having my first steps in coding and started with html I came across the <br> tag and couldn't understand what is it for and what it represents can anyone explain a little? thanks

21st Oct 2018, 8:12 PM
Idan
4 Answers
+ 1
the <br> (line break) is used to jump to the next line <p> solo <br> learn </p> output: solo learn
21st Oct 2018, 8:22 PM
Mbrustler
Mbrustler - avatar
+ 1
and could I do <p> solo learn </p> would that work or I have to write it with the <br>? and if I could so what's the point of using the <br>?
21st Oct 2018, 8:32 PM
Idan
+ 1
if you would use it like <p> solo learn </p> it would output solo learn you could use a second paragraph element <p> solo </p> <p> learn </p> output: solo learn https://code.sololearn.com/WD0lsYlPcG79/?ref=app
21st Oct 2018, 8:37 PM
Mbrustler
Mbrustler - avatar
+ 1
<p> got <br> it> <br> thanks </p> output got it thanks
21st Oct 2018, 8:49 PM
Idan