One of Dreamweaver’s most useful HTML tools is the clean up XHTML command, which you can find on the commands menu.
The Clean up XHTML Command removes empty tag, combines nested font tags, and otherwise improves messy HTML coding on a page.
When you issue the command, you can select specific items to clean up in the clean up HTML/XHTML dialog box.