+ 4

Which of these is the right <br>, <br/> or <br /> ?

7th Nov 2019, 6:45 AM
Cafezinho de Dionísio ☕
Cafezinho de Dionísio ☕ - avatar
4 odpowiedzi
+ 5
<br> is enough for HTML 5, but you can also use <br/> and <br /> for compatibility with XHTML. You should prefer <br /> in XHTML. https://www.w3.org/TR/xhtml1/#C_2
7th Nov 2019, 7:07 AM
Michal Straka
Michal Straka - avatar
+ 1
React.js uses <br />
7th Nov 2019, 7:04 AM
Calviղ
Calviղ - avatar
+ 1
All options are correct for HTML5 and can be used in code.
7th Nov 2019, 11:32 PM
BALU
BALU - avatar
0
<br /> will work all old version. but you can use any of them for modern browser
8th Nov 2019, 6:16 PM
Muhammad Ehsan
Muhammad Ehsan - avatar