can we use break tag as </br>?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

can we use break tag as </br>??

13th Jul 2016, 12:24 PM
Darsh Shah
Darsh Shah - avatar
11 Answers
+ 2
Nope you dont need an end tag. <br> is a void element and requires no Ending tag to break spaces.
13th Jul 2016, 2:33 PM
Andrew Agustin
Andrew Agustin - avatar
+ 1
<br> tag is an empty HTML element. Means that it do not surround any content within it and do not need a closing tag. However, in some cases, you should close all HTML tags, for example, when you write an XML document.
13th Jul 2016, 12:41 PM
Azwan Abdullah
Azwan Abdullah - avatar
0
thank you Azwan Abdullah.👍
13th Jul 2016, 12:43 PM
Darsh Shah
Darsh Shah - avatar
0
A forward slash in front of a tagname indicates that it is a closing tag. To add a new line without adding new paragraph, you can use <br> tag and if you want to close the tag, then you can use <br />
13th Jul 2016, 12:46 PM
Azwan Abdullah
Azwan Abdullah - avatar
0
yup its true..
13th Jul 2016, 12:48 PM
Darsh Shah
Darsh Shah - avatar
0
You're welcome 👌
13th Jul 2016, 12:48 PM
Azwan Abdullah
Azwan Abdullah - avatar
0
no
13th Jul 2016, 10:06 PM
M Nav Iwakura
M Nav Iwakura - avatar
0
but you can use <br></br> or just <br>
13th Jul 2016, 10:06 PM
M Nav Iwakura
M Nav Iwakura - avatar
0
no
14th Jul 2016, 5:36 PM
Felix Kojo Elikem Dzandu
Felix Kojo Elikem Dzandu - avatar
0
there is no end tag for br
15th Jul 2016, 5:38 AM
Krittika
Krittika - avatar
0
no
16th Jul 2016, 1:47 PM
Sathish 143
Sathish 143 - avatar