Space Before Closing Slash?

后端 未结 8 1808
说谎
说谎 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:10

    I think that the white space is a way to reinforce the idea that this tag is empty and it closes itself.

    Today i don't use the white space anymore because i never had a problem with no white space.

提交回复
热议问题