Before you actually start writing a meatier HTML page, getting a feel for what an HTML page looks like certainly helps. Luckily, you can find plenty of source material to look at. Every page that comes over the wire to your browser is in HTML (or perhaps XHTML) format. (You almost never see the codes in your browser; all you see is the final result.) Most web browsers have a way of letting you see the HTML source of a web page. If you're using Internet Explorer 6.0, for example, navigate to the web page that you want to look at. Choose View, Source to display the source code in a text window. In Netscape, choose View, Page Source. Tip In some browsers, you can't directly view the source of a web page, but you can save the current page as a file to your local disk. In a dialog box for saving the file, you might find a menu of formatsfor example, Text, PostScript, or HTML. You can save the current page as HTML and then open that file in a text editor or word processor to see the HTML source. Try going to a typical home page and then viewing its source. For example, Figure 3.3 shows the home page for Craigslist, a free online classified ads service search page at http://www.craisglist.org/. Figure 3.3. Craigslist home page. The HTML source code looks something like Figure 3.4. Figure 3.4. Some HTML source code. |