- 1
Is <br /> a valid HTML5 tag? Or it works only with XHTML support?
6 Respuestas
+ 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>.
+ 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
+ 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 /> .
+ 2
Thanks a lot.
+ 1
welcome :-)
and good luck <3
0
So, <br /> won't work in html or it is not obligate?