beautypg.com

Verify tags and braces are balanced, Check for balanced tags, Check for browser compatibility – Adobe Dreamweaver CC 2015 User Manual

Page 399: Validate xml documents

background image

392

Coding

Last updated 6/3/2015

Combine Nested Tags When Possible

Consolidates two or more font tags when they control the same range

of text. For example, big red would be changed to size="7" color="#FF0000">big red.

Show Log On Completion

Displays an alert box with details about the changes made to the document as soon as the

cleanup is finished.

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.

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.