Is it still necessary to put a space before closing an empty element in XHTML?

前端 未结 4 1892
南笙
南笙 2021-01-05 02:43

W3C recommends putting a space before the closing tag in XHTML, because this would give a better backwards compability with some browsers, e.g. write

4条回答
  •  逝去的感伤
    2021-01-05 03:32

    It's for Netscape 4.

    I still include it out of habit, and my templating library will put them in for me anyway, but it's questionable whether it's really that important today.

提交回复
热议问题