Testing Your Page

Even if your code validates, your page still may not work the way you want it to. Or it may work properly in one browser, but not in the next. It’s important to test your page in as many browsers as possible, on as many platforms as possible. At the very least, test your page on current versions of both Explorer and Netscape on both Windows and Macintosh.

To test your (X)HTML pages:

1.
Validate your (X)HTML and CSS (see page 345). Make any necessary changes.
2.
Open a browser, and choose File > Open File.
3.
Find the Web page on your hard disk that you want to test and click Open. The page appears in the browser.
4.
Go through the whole page and make sure it looks exactly the way you want it. For example:
  • Is the formatting ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide 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.