If your document contains invalid code, Dreamweaver displays that code in Design view and optionally highlights it in Code view. If you select the code in either view, the Property inspector displays information about why it’s invalid and how to fix it.
You can specify preferences for automatically rewriting various kinds of invalid code when you open a document.