Saving Your Web PageWeb pages are created with a text editor or word processor but are meant to be viewed with multiple browsers on multiple platforms. To be accessible to all of these different programs, Web pages are saved in a universal "text-only" formatwithout any proprietary formatting that a word processor might otherwise apply. So that browsers (and servers) recognize Web pages and know to interpret the markup they contain, as well as distinguish them from plain text files that are not Web pages, Web page files also have the .htm or .html extension. Because of that extension, a Web page's icon matches the system's default browser and not the word processor with which the file was written. Indeed, when you double-click a Web page file, it is opened in a browser, not a word processor. This is great for Web surfers, but it adds an extra step to editing Web pages (see page 50). In short, when you save your Web page, you must save it in text-only format with either the .htm or .html extension. Figure 2.5. An Excel worksheet has the .xlsx extension and is identified with the Excel icon (top). If you double-click it, it is displayed in Excel. A Web page file, no matter the word processor you create it with, has the .htm or .html extension but is identified with the default browser's icon. If you double-click it, it is displayed with your default browser (not the word processor).
To save your Web page:
Figure 2.7. In WordPad for Windows, give your file a name with the .htm or .html extension, choose Text Documents next to Save as type, and then click Save.
Figure 2.8. In TextEdit for Macintosh, give your file a name, choose a location, and click Save.
Tips
Figure 2.10. Many word processors, like the excellent BBEdit shown, let you choose the encoding for your file, so that you can save symbols and characters from different languages in the same document. BBEdit, as of version 7, automatically saves your file with the same encoding as you will declare in your document a little later on (page 59, to be exact). It's a lovely feature!
|