Operation Manual

307
USING DREAMWEAVER
Working with page code
Last updated 3/28/2012
4 To view the report in your primary browser (which lets you print the report), click the Browse Report button.
Validate documents using W3C validator (CS5.5)
Dreamweaver CS5.5 and later helps you create standards-compliant web pages with its in-built support for the W3C
validator. The W3C validator validates your HTML documents for conformance to HTML or XHTML standards. You
can validate both open documents, and files posted on a live server.
Use the report that is generated after validation to fix errors in your file.
Note: The W3C validator feature is available in Dreamweaver CS5.5 and later only. The previous version of the feature,
available in Dreamweaver CS4, was deprecated for Dreamweaver CS5. See the
Dreamweaver CS4 documentation for
more information about the previous version of the feature.
Validate an open document
1 Select Window > Results > W3C validation.
2 Select File > Validate > Validate Current Document (W3C).
Validate a live document
For live documents, Dreamweaver validates code received by the browser. This code is displayed when you right-click
in your browser, and choose the option to view the source code. Validating live documents is especially useful when
validating dynamic pages using PHP, JSP, and so on.
The Validate Live Document option is enabled only when the URL of the page being validated begins with http.
1 Select Window > Results > W3C validation.
2 Click Live View.
3 Select File > Validate > Validate Live Document (W3C).
For live documents, when you double-click an error in the W3C validation panel, a separate window opens. The
window displays the browser-generated code, and the line with the error is highlighted.
Customize validation settings
1 Select Window > Results > W3C validation.
2 In the W3C Validation panel, click the W3C Validation (Play) icon. Select Settings.
3 Select a DOCTYPE for validation if a DOCTYPE has not been explicitly specified for the document.
4 If you do not want errors and warnings displayed, clear the options.
5 Click Manage if you want to delete any warnings or errors that you have hidden using the W3C Validation panel.
When you remove warnings and errors, they are not displayed when you select Show All in the W3C validation
panel.
6 Select Don't Show W3C Validator Notification Dialog if you do not want the W3C Validator Notification dialog
displayed when you begin validation.
Working with validation reports
After validation is complete, the validation reports are displayed in the W3C Validation panel.
For more information on the error or warning, select the error/warning in the W3C Validation panel. Click More Info.
To save the report as an XML file, click Save Report.