ColdFusion Studio makes it easy to code in XHTML. You can set XHTML-specific options, use coding tools that all support the XHTML 1.0 specification, reformat your code using a Code Sweeper or HTML Tidy, and validate against the XHTML 1.0 specification, all without leaving ColdFusion Studio.
You can also use the W3C XHTML validator sites for Web-based files or local files.
The rest of this section briefly defines XHTML, describes XHTML-specific options that you can set, and explains how to work in an XHTML document.
XHTML (Extensible Hypertext Markup Language) is a reformulation of HTML as an XML application. It is almost identical to HTML 4.01, but it is more strict and clean.
XHTML is designed to replace HTML. It works on most existing HTML browsers as well as on XML systems, so you can switch to XML without excluding anyone or waiting for XML-based browsers to become more prevalent. Because XHTML is so similar to HTML, it is not difficult to switch from HTML to XHTML.
For more information, see the W3C specification for XHTML 1.1 - Module-Based XHTML or XHTML 1.0. You can also search tutorialfind for XHTML. Other good resources are Beginning XHTML, published 2000 by Wrox Press, and Welcome to XHTML School.
This section has instructions for setting options that are optimal for XHTML coding.
For more information about these options and other language options that are not specific to XHTML, see "Setting Options for Markup Languages".
</p> when inserting paragraph tag, Insert numeric values surrounded by quotes (Tag Inspector), and Minimize empty tags (e.g., <br/>). (Numeric references need to have the ampersand encoded; for example &#38; instead of just &.)
This ensures that your code displays properly in older browsers, for example by inserting a space before minimized empty tags (<br /> instead of <br/>).
DOCTYPE declaration for the XHTML Strict, Frameset, or Transitional DTD, or not inserting/replacing a DOCTYPE declaration. The dialog box that appears has options to Always replace with this DTD or Don't ask me again, in case you do not want it to appear again. If you clear this option, when you set a document as XHTML, no dialog box appears and no DOCTYPE declaration is inserted or replaced.
You can also set color coding for XHTML, validate against the XHTML 1.0 Strict specification, and specify the priority of XHTML in the Tag Definitions Library. For details, see "Using Color Coding Schemes", "Validating Code", and "Working with Tag Definitions".
This section describes how to enable XHTML support for a document. Once the program recognizes a document as XHTML, it displays XHTML Tag Editors, and the attribute table and completion options in Tag Inspector and Tag Insight are appropriate for XHTML.
To validate against the XHTML 1.0 specification, see "Validating Code".
DOCTYPE declarationThis will have no effect if the current document is read-only.
DOCTYPE declaration for the DTD that you will use (there are three versions of the XHTML 1.0 specification). Select No replacement if you do not want to change or add a DOCTYPE declaration, for example if you are writing XHTML code to include in another page that already has its own DOCTYPE declaration.
DOCTYPE declaration, then select Always replace with this DTD. DOCTYPE declaration, then select Don't ask me again. LiveDocs comments are not longer enabled for ColdFusion 5.0. Please use one of the following resources instead.
ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 5.0