htmlmicrosoft-expression-web

How to change Microsoft Expression Web doctype to HTML 5


I am using Microsoft Expression Web, and I have this problem: When I create a new HTML file, I get this:

enter image description here

How can I change from XHTML 1.0 to HTML 5?


Solution

  • 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:

    To set the default DocType declaration that Expression Web inserts when you create new pages

    On the Tools menu, click Page Editor Options.

    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.