In Dreamweaver, you can open documents saved by Microsoft Word as HTML files, and then use the Clean Up Word HTML command to remove the extraneous HTML code generated by Word. The Clean Up Word HTML command is available for documents saved as HTML files by Word 97 or later.
The code that Dreamweaver removes is primarily used by Word to format and display documents in Word and is not needed to display the HTML file. Retain a copy of your original Word (.doc) file as a backup, because you may not be able to reopen the HTML document in Word once youve applied the Clean Up Word HTML feature.
To clean up HTML or XHTML that was not generated by Microsoft Word, see Cleaning up your code.
NOTE |
|
In Windows, close the file in Word to avoid a sharing violation. |
To view the HTML code generated by Word, switch to Code view (View > Code).
The Clean Up Word HTML dialog box appears.
There may be a slight delay while Dreamweaver attempts to determine which version of Word was used to save the file. If Dreamweaver is unable to determine this, select the correct version using the pop-up menu.
For more information about options in the dialog box, see Setting options for the Clean Up Word HTML dialog box.
Dreamweaver applies the cleanup settings to the HTML document and a log of the changes appears (unless you deselected that option in the dialog box).
![]() | ![]() |