Cleaning up your code

Cleaning up your code

Dreamweaver can automatically remove empty tags, combine nested font tags, and otherwise improve messy or unreadable HTML or XHTML code.

For information on how to clean up HTML generated from a Microsoft Word document, see Opening existing documents.

To clean up the code:

  1. Open a document:
    • If the document is in HTML, select Commands > Clean Up HTML.
    • If the document is in XHTML, select Commands > Clean Up XHTML.

      For an XHTML document, the Clean Up XHTML command fixes XHTML syntax errors, sets the case of tag attributes to lowercase, and adds or reports the missing required attributes for a tag in addition to performing the HTML cleanup operations.

  2. In the dialog box that appears, select any of the options.

    For more information, see Setting the Clean Up HTML dialog box options.

  3. Click OK.

    Depending on the size of your document and the number of options selected, it may take several seconds to complete the cleanup.

Related topics

  • Setting code formatting preferences
  • Setting code coloring preferences


Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Setting Up Your Coding Environment
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly
 
ASPTreeView.com
 
Evaluation has ЪГїЙКёМјХexpired.
Info...