4.5. Clean Up HTML Code

Dreamweaver can optimize the code in your Web pages by deleting redundant or nonfunctional tags. This can decrease the page file size and make the source code easier to read in Code view.

It is easy to create unused tags when you do things such as copy and paste content. To keep formatting more consistent, it is a good idea to delete unused tags by running the Clean Up XHTML command.

Clean Up HTML Code

Click Split to display the Code view and Design view at the same time.

  • In this example, there are two empty <h1> tags. ...

Get Teach Yourself Visually™ Adobe® Dreamweaver® CS5 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.