Chapter 3. Viewing Web Pages

Viewing your web pages in a browser is an essential part of learning to write HTML code. Not only does it give you a sense of satisfaction (when everything goes right), but it also provides a valuable testing platform (when it doesn't). Throughout the balance of this book, after you've created or modified a web page, you'll be asked to view it in your browser. This lesson shows you how to view and change an HTML page.

OPENING FILES IN A BROWSER

The majority of the time, you'll use your favorite web browser — whether it is Internet Explorer, Firefox, Safari, Google Chrome, Opera, or another — to view pages and sites posted on the World Wide Web. However, your browser is also a very capable tool for displaying locally stored web pages composed of standard HTML.

The steps for viewing a locally saved HTML file in a browser are the same across the spectrum of modern browsers, with a couple of exceptions. The following programs work identically when it comes to viewing a local web page, on either a PC or a Mac:

  • Firefox

  • Safari

  • Google Chrome

To view a saved web page with these browsers, choose File

OPENING FILES IN A BROWSER
FIGURE 3-1

Figure 3-1. FIGURE 3-1

If you're an Internet Explorer user, the steps are slightly different:

  1. Choose File

  2. When the Open dialog box appears, click Browse.

  3. In the Windows Internet ...

Get HTML5 24-Hour Trainer now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.