Reference Manual

HOW TO debug HTML, Javascript and CSS.

Introduction

Many programmers develop HTML code using trial-and-error techniques. For this approach to be effective, accurate (and detailed) information on the many errors that inevitably occur is required.

Most web browsers provide only minimal amounts of error information about script errors, and they completely ignore CSS and HTML errors. The notable exception is the Mozilla-compatible K-Meleon browser.

K-Meleon as a debugging tool

The K-Meleon browser has the best Error Console of any browser I have tested. It is the only browser that displays all errors and warnings for Javascript, CSS, HTML, XML, Chrome and Content.

It also has an impressive range of other features that make debugging and interrogation of web pages very easy:

  • It can display a list of all links on a page in a separate window.
  • Supports one-click blocking of cookies, images, Javascript, Flash and Popups.
  • Allows the User-Agent string to be set to any desired value.
  • Allows code to be entered and executed in the context of the page.
  • K-Meleon as a Web Browser

    The many diagnostic and privacy features of K-Meleon make it the browser of choice, particularly for viewing offensive, ad-infested web sites.