Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML片段未闭合是基于怎样的考虑? #1

Closed
alvinhui opened this issue Sep 30, 2013 · 2 comments
Closed

HTML片段未闭合是基于怎样的考虑? #1

alvinhui opened this issue Sep 30, 2013 · 2 comments

Comments

@alvinhui
Copy link

今天安装了LEGO,使用html代码片段的时候发现bodyhtml标签未闭合。想请问这是一个怎样的考虑?

see: https://raw.github.com/maxlee/LEGO-Snippets/master/_/html.sublime-snippet

@maxlee
Copy link
Owner

maxlee commented Sep 30, 2013

doctype声明为html5是允许这两个标签不需要闭合,是符合html规范的;关于这个问题可以查看Google官方文档:https://developers.google.com/speed/articles/optimizing-html

@alvinhui
Copy link
Author

标准是一个方面但是各个浏览器对标准的实现如何?尤其是猪队友ie 6 7。(先留此坑待做考究)

我还看到了这句

For example, if you have a list of items marked up as <li>List item</li>, you could instead just write <li>List item. 

平时你的团队会采用这种方式吗?

@maxlee maxlee closed this as completed Aug 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants