Coding in XHTML
4
Under the Markup Languages pane, in the HTML/XHTML pane, select
Compatibility mode for older browsers (e.g., space before "/>").
This ensures that your code displays properly in older browsers, for example by
inserting a space before minimized empty tags (
5
Select Display DTD selection dialog when the XHTML namespace is specified if,
when you select Options > Set Document as XHTML, you want to be able to
choose between inserting the
Frameset, or Transitional DTD, or not inserting/replacing a
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
6
Click Apply.
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
102, and
Enabling XHTML support in a document
This section describes how to enable
program recognizes a document as XHTML, it displays XHTML Tag Editors, and the
attribute
appropriate for XHTML.
To validate against the XHTML 1.0 specification, see
To automatically enable XHTML support, do one of the following:
Create a document with one of the templates available in the File > New >
XHTML dialog box (Strict, Transitional, or Frameset)
Open or create a document containing a Strict, Transitional, or Frameset
declaration
To manually enable XHTML support:
1
Select Options > Set Document as XHTML for the current document.
This will have no effect if the current document is read-only.
2
If Options > Settings > Markup Languages > XHTML/HTML > Display DTD
selection dialog when the XHTML namespace is specified is selected, a dialog
box appears. Select the
are three versions of the XHTML 1.0 specification).
Select No replacement if you do not want to change or add a
for example if you are writing XHTML code to include in another page that
already has its own
declaration is inserted or replaced.
DOCTYPE
"Using Color Coding Schemes" on page
"Working with Tag Definitions" on page
table and completion options in Tag Inspector and Tag Insight are
DOCTYPE
declaration.
DOCTYPE
<br />
declaration for the XHTML Strict,
DOCTYPE
95,
"Validating Code" on page
106.
XHTML
support for a document. Once the
"Validating Code" on page
declaration for the
DTD
89
instead of
).
<br/>
declaration.
DOCTYPE
102.
DOCTYPE
that you will use (there
declaration,
DOCTYPE
Need help?
Do you have a question about the COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO and is the answer not in the manual?