Self-closing tags (void elements) in HTML5

前端 未结 5 425
不知归路
不知归路 2020-11-28 12:10

Step 6 of 8.1.2.1 Start tags of the HTML5 spec says that void elements may have a single / character. I think this is so it\'s easier to migrate sites

5条回答
  •  被撕碎了的回忆
    2020-11-28 12:36

    There is no consensus on best practice, and according to the author of the spec, Ian Hickson, it does not matter.

提交回复
热议问题