About Microsoft Word and Web Pages


Word can automatically create Web pages from existing documents, often whether you want it to or not. Its commands are particularly confusing to Web page designers who create their own markup codewhich is probably you if you're reading this book.

Figure 2.11. Don't choose Word's Web Page option next to Save as type! (And don't choose Save as Web Page from the File menu!) It's for converting regular Word documents into Web pages and will mess up hand-coded markup.


Word's "Web Page" file type (available in the Save dialog box and in older versions of Word as the Save as Web Page menu command) means "convert the present document into HTML, adding markup where there is formatting, and saving as text-only with the .htm extension". There are two problems with this command. First, it converts your (X)HTML tags into plain text, using special symbols. Second, Microsoft adds an incredible amount of proprietary code. If you're writing your own markup with this book, you don't want to use this option.

Instead, choose File > Save As, choose Plain Text (*.txt) from the Save as type box (Figure 2.12), and then change the default .txt extension to .htm or .html (Figure 2.13).

Figure 2.12. Instead, first choose Plain Text (*.txt) in the Save as type: pop-up menu and then...


Figure 2.13. ...manually type the .html extension. Then click Save.


Tips

  • When you choose Plain Text (*.txt), Word gives you the option of saving your file with a different encoding. Click Other encoding and then choose the one you want from the list (Figure 2.14). For more details, consult Saving Your Page with the Proper Encoding on page 333.

    Figure 2.14. When you save a file in Plain Text (*.txt), Word gives you the option of choosing a different encoding. I recommend UTF-8.

  • Other versions of Word may have slightly different wording or dialog boxes.





HTML, XHTML, & CSS(c) Visual QuickStart Guide
HTML, XHTML, and CSS, Sixth Edition
ISBN: 0321430840
EAN: 2147483647
Year: 2004
Pages: 340

Similar book on Amazon

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