Start the Dreamweaver program and open the Web page you want to edit.
Step2
Open the Command menu and choose Clean Up HTML.
Step3
Choose your options (see Tips for more information about the available options) and click OK.
Step4
Add a specific tag to be cleaned up using the Add Specific Tag designation. Check the box and type the tag to be removed.
Step5
Make sure the Combine Nested Tags option is checked. This combines all of the tags for one formatting option (for example, all formatting properties, such as font size, color and bold will be located within the same tag).
Step6
To see a detailed report of the changes made, make sure the Show Log on Completion box is checked.
Step7
Click OK. The process may take several minutes.
Tips & Warnings
Remove Empty Tags deletes tags that have nothing between them, such as text or images.
Remove Redundant Nested Tags removes tags that are not necessary.
Remove Non-Dreamweaver HTML Comments removes all comments not put in using the Dreamweaver program. Remove Dreamweaver HTML Comments removes all comments inserted using Dreamweaver. You must choose both options to remove all comments.
Some proprietary tags, such as those used by certain FrontPage "bots," are required to make certain components on a page run. For testing results, make a copy of the page before you edit it; if the component doesn't work, you can reference the older copy's HTML code.