时间:2021-07-01 10:21:17 帮助过:73人阅读
不耐烦可以跳到最后看结论。
Empty elements must either have an end tag or the start tag must end with />. For instance,
or
. See HTML Compatibility Guidelines for information on ways to ensure this is backward compatible with HTML 4 user agents.CORRECT: terminated empty elements
INCORRECT: unterminated empty elements
Doctype: XHTML 1.0 Strict:
是正确写法,而
是错误的。
Doctype: HTML 4.01 Strict:
是正确写法,而
是错误的。


知乎,声明的HTML5,可是用了林说错了(妈蛋否定别人的否定真是拗口)
(HTML5下错误)
需要。若果不闭合浏览器将自己判断在何处闭合,增加运行成本。