Cleaning Up HTML Created with Microsoft Word

It's very convenient while working in Word to simply save a document as a Web page. Word does a great job creating a Web page that looks very similar to the Word document. The problem is that Word requires a lot of extra code to display the Web page in Word. If you do not need to display the Web page in Word and you'd like to put it up on the Web, you can use Dreamweaver to clean up the extra code.

To save a Word document as a Web page, you select the Save as Web Page command from the File menu. Word prompts you to name the document and adds the .htm file extension. The resulting page has a lot of extra code, as shown in Figure 5.16. When you save a Word document as a Web page, make sure you close ...

Get Sams Teach Yourself Macromedia® Dreamweaver® MX in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.