Making pages XHTML-compliant

Making pages XHTML-compliant

When you create a new page, you can make it XHTML-compliant. You can also make an existing HTML document XHTML-compliant.

To create a new, XHTML-compliant document:

  1. Select File > New.

    The New Document dialog box appears.

  2. Select a category and type of page to create.
  3. Select one of the XHTML document type definitions (DTD) from the Document Type (DTD) pop-up menu.

    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.

  4. Click OK.

To create XHTML-compliant documents by default:

  1. Select Edit > Preferences or Dreamweaver > Preferences (Mac OS X) and select the New Document category.
  2. In the New Document category, select a default document and select one of the XHTML document type definitions (DTD) from the Default Document Type (DTD) pop-up menu.

    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.

  3. Click OK.

To make an existing HTML document XHTML-compliant:

  • Open a document, then 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.

      To convert the whole document, repeat this step for every frame and the frameset document.

Related topics

  • About the XHTML code generated by Dreamweaver


Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Setting Up Your Coding Environment
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly