vs
in clearing

后端 未结 12 1444
醉话见心
醉话见心 2021-02-02 10:47

What is the difference


vs

??

Al

12条回答
  •  故里飘歌
    2021-02-02 11:37

    If you're writing (valid) XHTML you don't need to use the closing tag, but self closing div tags don't work in all browsers, so you should still use it. ie your example:

    `
    `

    This is valid XHTML (see html vs xhtml) but doesn't work in all browsers, so you should stick with the above:

    also, For what it's worth the
    tag is deprecated in favor of the tag (see w3.org entry on the
    tag)

提交回复
热议问题