Accessibility

Dreamweaver Documentation

Changing default file extensions from .htm to .html


Table of Contents

  1. Unicode normalizations and Byte Order Mark
  2. Dynamic font mapping preferences
  3. Validator preferences
  4. Dreamweaver now allows keyboard shortcuts for code snippets
  5. Quick Tag Editor code hints are controlled by the Code Hints preferences dialog box
  6. Changing default file extensions from .htm to .html
  7. Importing Microsoft Word and Excel documents on the Mac
  8. Documentation for the New CSS Style dialog uses incorrect selector names
  9. Documentation for pasting formatted text uses incorrect menu option
  10. Documentation for the Sort Table command uses incorrect option labels
  11. Documentation for the ASP.NET Hyperlink Column dialog box is incorrectly titled.
  12. Documentation for animating layers with timelines
  13. Documentation errors in Animating Layers with Timelines

By default, Dreamweaver creates HTML pages using the .htm extension (such as index.htm). If you prefer to have an .html extension appended to your filenames by default, you can edit the appropriate configuration file, and edit the file extension attribute.

Note: To learn more about filename extensions and how they relate to document type definitions, see "Extensible document types in Dreamweaver" in the Extending Dreamweaver online Help.

To change the default file extension:

  1. Locate the MMDocumentTypes.xml file in the Dreamweaver application folder in the Configuration\DocumentTypes folder ($Dreamweaver\Configuration\DocumentTypes).
  2. Create a backup of the MMDocumentTypes.xml file.
  3. Open the MMDocumentTypes.xml file in Dreamweaver (or any text editor).
  4. Change the order of the HTM and HTML attributes in the winfileextension and macfileextension XML tags of the documenttype element.

    By default, these attributes are ordered as shown in the following example:

    winfileextension="htm,html,shtml,shtm,stm,tpl,lasso,xhtml"macfileextension="htm,html,shtml,shtm,tpl,lasso,xhtml"

    Edit these entries so they appear as:

    winfileextension="html,htm,shtml,shtm,stm,tpl,lasso,xhtml"macfileextension="html,htm,shtml,shtm,tpl,lasso,xhtml"
  5. Save your changes to the file.
  6. Restart Dreamweaver to initiate the new settings.

    By default, Dreamweaver will now append the .html extension to HTML files.