Space Before Closing Slash?

后端 未结 8 1831
说谎
说谎 2020-11-27 15:29

I\'ve frequently seen a space preceding the closing slash in XML and HTML tags. The XHTML line break is probably the canonical example:


<
8条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 16:14

    In XHTML, br tags must be closed, but the space is not necessary. It's a stylistic thing. In HTML, br tags cannot be closed, so both are wrong.

提交回复
热议问题