+ 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
4 Antworten
+ 1
the <br> (line break) is used to jump to the next line
<p>
solo <br> learn
</p>
output:
solo
learn
+ 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>?
+ 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
+ 1
<p>
got <br> it> <br> thanks
</p>
output
got
it
thanks