About Microsoft Word and Web Pages






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.

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), and then change the default .txt extension to .htm or .html (Figure).

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


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). For more details, consult Saving Your Page with the Proper Encoding on page 333.

    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.




 Python   SQL   Java   php   Perl 
 game development   web development   internet   *nix   graphics   hardware 
 telecommunications   C++ 
 Flash   Active Directory   Windows