Share this Page URL

Laying the Foundation: The Basic Structure of a Web Page 17 If you're using Windows WordPad:Use the Save as type list to select Text Document. You also need to surround your filename with quotation marks (for example, "index.html") to ensure that WordPad uses your .htm or .html extension. If you're using Microsoft Word:Use the Save as type list to select Text Only (*.txt). Again, you need to surround your filename with quotation marks. · When you've done all that, click Save in the Save As dialog box to save the file. (If you're using WordPad, the program might ask if you're sure you want to save the file in "Text-Only format." Say "Duh!" and click Yes.) The Edit-Save-Browse Cycle By now you've probably figured out the biggest problem associated with fashioning a web page out of a text file: There's no way to know what the page will look like after it's been foisted on to the web! Fortunately, all is not lost. Most browsers are more than happy to let you load a text file right from the confines of your computer's hard disk. This means you can test drive your page without first having to put it on the web. So here's the basic cycle you'll use to build your pages: 1. In your text editor or word processor, either start a new file (if one isn't started for you already) or use the File, Open command to open an existing file. (If you're opening an existing HTML file in Microsoft Word, you need to select the View, HTML Source command to see the tags.) Webmaster Wisdom When you run the File, Open command, the Open dialog box probably won't show your HTML files. To see them, use the Files of type list to select All Documents (*.*) (some programs use All Files (*.*), instead). 2. 3. 4. Add some text and HTML stuff (I'll define what this "stuff" is in the next section) to your file. Select the program's File, Save command to save the file using the points I mentioned above. Load the file into your browser of choice to see how things look. As a public service (it's a tough job but, hey, somebody's gotta do it), here are the appropriate instructions for loading a file from your hard disk using the Big Two browsers: a. In Internet Explorer for Windows, select the File menu's Open command (or press Ctrl +O), click the Browse button in the Open dialog box that appears, and then pick out the file you need. You can reload the file by selecting the View menu's Refresh command, or by pressing F5. In Internet Explorer for the Mac, select the File, Open File command (or press +O) and then use the Open dialog box to choose your file. You can reload the page by selecting View, Refresh, or pressing +R. In Netscape Navigator 4, pull down the File menu, select the Open Page command (or you can press Ctrl+O), click the Choose File button, and then find the file by using the Open dialog box that appears. To reload the file, pull down the View menu and select Reload (or press Ctrl+R). b. c.