- 1

Is <br /> a valid HTML5 tag? Or it works only with XHTML support?

16th Mar 2018, 5:07 PM
Evil Dog
Evil Dog - avatar
6 odpowiedzi
+ 3
In HTML (up to HTML 4): use <br> In HTML 5: <br> is preferred, but <br/> and <br /> is also acceptable. In XHTML: <br /> is preferred. Can also use <br/> or <br></br>.
16th Mar 2018, 5:37 PM
Baraa AB
Baraa AB - avatar
+ 5
In HTML, the <br> tag has no end tag. In XHTML, the <br> tag must be properly closed, like this: <br />. FOR MORE: https://stackoverflow.com/questions/1946426/html-5-is-it-br-br-or-br
16th Mar 2018, 5:12 PM
Baraa AB
Baraa AB - avatar
+ 3
The HTML <br> element produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the division of lines is significant. Must have a start tag, and must not have an end tag. In XHTML documents, write this element as <br /> .
16th Mar 2018, 5:08 PM
Scooby
Scooby - avatar
+ 2
Thanks a lot.
16th Mar 2018, 5:37 PM
Evil Dog
Evil Dog - avatar
+ 1
welcome :-) and good luck <3
16th Mar 2018, 5:42 PM
Baraa AB
Baraa AB - avatar
0
So, <br /> won't work in html or it is not obligate?
16th Mar 2018, 5:28 PM
Evil Dog
Evil Dog - avatar