Operation Manual
306
USING DREAMWEAVER
Working with page code
Last updated 3/28/2012
More Help topics
“Change the code format” on page 283
“Set the code colors” on page 285
Verify tags and braces are balanced
You can check to make sure the tags, parentheses (( )), braces ({ }), and square brackets ([ ]) in your page are balanced.
Balanced means that every opening tag, parenthesis, brace, or bracket has a corresponding closing one, and vice versa.
Check for balanced tags
1 Open the document in Code view.
2 Place the insertion point in the nested code you want to check.
3 Select Edit > Select Parent Tag.
The enclosing matching tags (and their contents) are selected in your code. If you keep selecting Edit > Select Parent
Tag, and your tags are balanced, eventually Dreamweaver will select the outermost
html and /html tags.
Check for balanced parentheses, braces, or square brackets
1 Open the document in Code view.
2 Place the insertion point in the code you want to check.
3 Select Edit > Balance Braces.
All of the code between the enclosing parentheses, braces, or square brackets is selected. Choosing Edit > Balance
Braces again selects all of the code inside the parentheses, braces, or square brackets that enclose the new selection.
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.
More Help topics
“Check for cross-browser CSS rendering issues” on page 140
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.