HTML: What's the correct form of BR?

后端 未结 8 1758
生来不讨喜
生来不讨喜 2021-01-17 07:52

How is correct to write the br tag in html?


or


or anyt

相关标签:
8条回答
  • 2021-01-17 08:17
    <br/>.  
    

    Here:

    Some of the most common errors in the usage of XHTML are:
    Not closing empty elements (elements without closing tags in HTML4)
    Incorrect: <br>
    Correct: <br />
    Note that any of these is acceptable in XHTML: <br></br>, <br/>, and <br />. Older HTML-only browsers interpreting it as HTML will generally accept <br> and <br />.
    
    0 讨论(0)
  • 2021-01-17 08:18

    You should use <br /> because it respect the standards XHTML, HTML and in general (XML). Because every xml tag needs to close.

    0 讨论(0)
提交回复
热议问题