HTML: What's the correct form of BR?

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

How is correct to write the br tag in html?


or


or anyt

8条回答
  •  旧巷少年郎
    2021-01-17 08:03

    It depends on the doctype you're using. In the original versions of HTML (up to HTML4), only
    is correct. In XHTML (which is based on XML), only
    is correct. In HTML5, both are allowed although
    is preferred.

提交回复
热议问题