从我所看到的,开始
HTML5页面的正确方法是:
<!DOCTYPE html> <html>@H_403_4@没有更多的这些线.这是真的? (我要问,因为Visual Studio有更多的.) @H_403_4@(此外,我想知道HTML5是否真的是当前的标准,或者我应该使用XHTML5或其他一些版本.)
解决方法
根据
HTML living standard和
the W3C spec,doctype是必需的序言,但是由于遗留原因而需要.我引用:
@H_403_12@
I be using XHTML5 or some other version.) @H_403_4@它不是目前的标准IMHO,因为它还没有完成.但this article解释了很好的10个使用原因.
- A string that is an ASCII case-insensitive match for the string
"<!DOCTYPE"
. - One or more space characters.
- A string that is an ASCII case-insensitive match for the string
“html”. - Optionally,a DOCTYPE legacy string or an obsolete permitted DOCTYPE
string (defined below). - Zero or more space characters.
- A U+003E GREATER-THAN SIGN character (>).
<!DOCTYPE html>
,case-insensitively.
@H_403_4@而< html>< / html>为有效的文件
@H_403_12@
@H_403_4@(Also,I’m wondering if HTML5 is really the current standard or shouldI be using XHTML5 or some other version.) @H_403_4@它不是目前的标准IMHO,因为它还没有完成.但this article解释了很好的10个使用原因.