Space Before Closing Slash?

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

    No, the space is not required but it is necessary for some older browsers to render those tags correctly. The proper way to do it is without the extra space as this is something XHTML inherited from XML.

提交回复
热议问题