Using the XHTML closing slash (/) on normal tags?

后端 未结 3 1889
無奈伤痛
無奈伤痛 2020-12-21 08:02

I was just wondering whether it is acceptable to close a common tag, eg. a which requires no data using the XHTML closing slash to reduce markup.

3条回答
  •  遥遥无期
    2020-12-21 08:41

    No you can't do that, span is not self-closing tag. Here are the self closing tags:

    
    
    
    

提交回复
热议问题