Working with Microsoft Word HTML


Web page content can come from a variety of sources. Clients or colleagues might send material in a Microsoft Word file. If the format of the Word document is fairly simple, you can use the copy-and-paste method to import your text into Dreamweaver. If the Word document has formatting such as bullets or tables, you might want to save the document as a Web page (choose File > Save As Web Page in Word 97 or later) and open the resulting HTML file in Dreamweaver. Word inserts a great number of unnecessary tags, however. You can clean up this code in Dreamweaver in one step. The tags that Dreamweaver removes are required to display the page in Word, but are not needed in HTML or a browser.

1.

Open the GreenStudio.html file from the Lesson_16_Code/Word folder.

This HTML file was created by using the Save As Web Page command within Microsoft Word.

2.

Choose Commands > Clean Up Word HTML.

The Clean Up Word HTML dialog box opens.

Dreamweaver attempts to determine which version of Word was used to create the HTML. If Dreamweaver cannot determine the version, you should choose Word 2000 And Newer from the menu.

The dialog box has two tabs, Basic and Detailed, with several options to check for each. For this exercise, use the default setting (all options checked).

The options on the Basic tab are as follows:

  • Remove All Word-Specific Markup

  • Clean Up CSS

  • Clean Up <font> Tags

  • Fix Invalidly Nested Tags

  • Set Background Color

  • Apply Source Formatting

  • Show Log On Completion

The Detailed tab contains additional options to remove all Microsoft Word-specific markup and clean up CSS.

3.

Make sure that all the boxes on the basic tab are checked and click OK. Click OK again to close the dialog box after reviewing the changes Dreamweaver made when cleaning up the file and then save the document.

Dreamweaver displays a dialog box listing all the changes it made.




Macromedia Dreamweaver 8(c) Training from the Source
Macromedia Dreamweaver 8: Training from the Source
ISBN: 0321336267
EAN: 2147483647
Year: 2006
Pages: 326

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net