Operation Manual

Table Of Contents
405
Coding
Last updated 11/30/2015
Create XHTML-compliant documents
1 Select File > New.
2 Select a category and type of page to create.
3 Select one of the XHTML document type definitions (DTD) from the DocType pop-up menu on the far right of the
dialog box, and click Create.
For example, you can make an HTML document XHTML-compliant by selecting XHTML 1.0 Transitional or
XHTML 1.0 Strict from the pop-up menu.
Note: Not all document types can be made XHTML-compliant.
Create XHTML-compliant documents by default
1 Select Edit > Preferences or Dreamweaver > Preferences (Mac OS X), and select the New Document category.
2 Select a default document and select one of the XHTML document type definitions from the Default Document
Type (DTD) pop-up menu, and click OK.
For example, you can make an HTML document XHTML-compliant by selecting XHTML 1.0 Transitional or
XHTML 1.0 Strict from the pop-up menu.
Make an existing HTML document XHTML-compliant
1 Open a document, and do one of the following:
For a document without frames, select File > Convert, and then select one of the XHTML document type
definitions.
For example, you can make an HTML document XHTML-compliant by selecting XHTML 1.0 Transitional or
XHTML 1.0 Strict from the pop-up menu.
For a document with frames, select a frame and select File > Convert, and then select one of the XHTML
document type definitions.
2 To convert the whole document, repeat this step for every frame and the frameset document.
Note: You can’t convert an instance of a template, because it must be in the same language as the template on which it’s
based. For example, a document based on an XHTML template will always be in XHTML, and a document based on a
non-XHTML-compliant HTML template will always be HTML and can’t be converted to XHTML or any other language.
More Help topics
Change the code format
Set the color theme for Code View
Check for cross-browser CSS rendering issues
XHTML code
Using ColdFusion components
Editing code in Design view
Note: The user interface has been simplified in Dreamweaver CC and later. As a result, you may not find some of the
options described in this article in Dreamweaver CC and later. For more information, see
this article.