Dreamweaver CS4 Resources
|
Make pages XHTML-compliant
When you create a page, you can make it
XHTML-compliant. You can also make an existing HTML document XHTML-compliant.
Create XHTML-compliant documents- Select File > New.
- Select a category and type of page to create.
- 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- Select Edit > Preferences
or Dreamweaver > Preferences
(Mac OS X), and select the New Document category.
- 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-compliantOpen 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.
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.
|