Validate documents using w3c validator, Validate an open document, Validate a live document – Adobe Dreamweaver CC 2015 User Manual
Page 400: Customize validation settings, Working with validation reports
393
Coding
Last updated 6/3/2015
Validate documents using W3C validator
Dreamweaver 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.
Validate an open document
1
Select Window > Results > Validation to open the Validation panel. This panel displays the results of the 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 > Validation to open the Validation panel. This panel displays the results of the 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 > Validation to open the Validation panel.
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.
• To view the entire report in HTML, click Browse Report. The HTML report provides the complete list of errors and
warnings along with a summary.
• To jump to the location in the code containing the error, select the error in the W3C Validation panel. Click the
Options button, and select Go to Line.