+ 9
Which one is use for html5 <br> or <br />?
12 odpowiedzi
+ 9
shiwangee pathak,
Both are possible but the /> is correctly formatted in HTML5.
Correct formatted break-line tag.
<br />
An html tag without closing tag you close with:
/>
E.g.
<img src="" />
<input type="" />
<hr />
<br />
+ 3
thank u
+ 3
thank u..
+ 3
both can be used, the' /' is not a must for inline elements. so both are actually the same.
+ 2
You can use the two
+ 2
<br /> will line break a line(a new line) to your HTML document
+ 1
🌴Vincent Berger🌴 , it's only fox XHTML, HTML5 defines "/" as optional for void elements. Reference: http://w3c.github.io/html/syntax.html#start-tags
+ 1
<br>
0
both. <br/> is the xml way to write it but works the same as <br>
0
<br/> is used in html5