如何将Microsoft Expression Web doctype更改为HTML 5 [英] How to change Microsoft Expression Web doctype to HTML 5
问题描述
我正在使用Microsoft Expression Web,我遇到了这个问题:当我创建一个新的 HTML 文件时,我得到了这个:
I am using Microsoft Expression Web, and I have this problem: When I create a new HTML file, I get this:
如何更改 XHTML 1.0
到 HTML 5
?
推荐答案
如果您只想在新创建的文件中将doctype从XHTML 1.0更改为HTML5,请将第一行替换为<!doctype HTML>
。如果您要问的是如何将其设为默认值,则根据 Microsoft的文档:
If you just want to change the doctype from XHTML 1.0 to HTML5 in the newly created file, replace the first line with <!doctype HTML>
. If what you're asking is how to make this the default, then according to Microsoft's documentation:
设置Expression Web在创建新页面时插入的默认DocType声明
在工具菜单上,点击页面编辑器选项。
在页面编辑器选项对话框的创作标签上,
选择文档类型和辅助架构你想用于所有新的
文件。
In the Page Editor Options dialog box, on the Authoring tab, select the Doctype and Secondary Schema you want to use for all new files.
这篇关于如何将Microsoft Expression Web doctype更改为HTML 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!