22. Testing and Debugging Web Pages

So, you’ve written up a brand new page and you fire up your browser only to find that it doesn’t look anything like you expected. Or it doesn’t display at all. Or maybe it looks great in your default browser but when you call your client she says it looks, well, kind of funny on her computer.

Between HTML, XHTML, CSS and the multitude of browsers and platforms on which you can view them, it’s easy to have a bit of trouble. This chapter will alert you to some common errors, and will also help you weed out your own homegrown variety.

Some of the debugging techniques may seem pretty basic. The thing is that most problems with Web pages are pretty basic, too. Before you go looking for a big problem, make sure ...

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.