Operation Manual

Table Of Contents
403
Coding
Last updated 11/30/2015
Check for browser compatibility
The Browser Compatibility Check (BCC) feature helps you locate combinations of HTML and CSS that can trigger
browser rendering bugs. This feature also tests the code in your documents for any CSS properties or values that are
unsupported by your target browsers.
Note: This feature replaces the former Target Browser Check feature, but retains the CSS functionality of that feature.
Validate XML documents
You can set preferences for the Validator, the specific problems that the Validator should check for, and the types of
errors that the Validator should report.
1 Do one of the following:
For an XML or XHTML file, select File > Validate > As XML.
The Validation tab of the Results panel displays a “No errors or warnings” message or lists the syntax errors it
found.
2 Double-click an error message to highlight the error in the document.
3 To save the report as an XML file, click the Save Report button.
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
Dreamweaver helps you create standards-compliant web pages with its in-built support for the W3C validator. The
W3C validator validates your HTML and XML documents for conformance to HTML, XHTML, or XML 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: In Dreamweaver preferences, you can specify the parser against which your documents must be validated. This
preference is used as a fallback setting in cases where the DOCTYPE cannot be detected automatically.
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.