Validating HTML

1 Install TotalValidator Basic 11.7.0

There are a number of validators available to check HTML files. I recommend TotalValidator Basic (under Windows), but it is unfortunately no longer free. The new free version is called TotalValidator Test and only produces summary statistics, rather than a line by line error report.

For the time being, use the free version of TotalValidator Basic v 11.7.0 from 09 Oct 2017, which is archived at:

2. Configure the Options

Once installed, set the validator to check for XHTML 5.2 (do not check Accessibility or CSS), then Browse to the file you want to check. The panel should look something like Figure 1. Press Validate and the results will appear in a browser window.

TotalValidator Basic v 11.7.0 Main Panel.
Figure 1: TotalValidator Basic v 11.7.0: Main panel with options set to validate XHTML 5.2.

3. Locate any Errors

If the HTML5 file contains validation errors the corresponding line numbers will be highlighted, as shown in Figure 2. Fix the errors one at a time, starting at the top. Fixing one error often eliminates several error messages. Then validate again.

TotalValidator Basic v 11.7.0 Issue Report
Figure 2: TotalValidator Basic v 11.7.0: An issue report. Three errors, the first of which is in line 43.

4. Finished

Once all validation errors have been eliminated, a screen similar to the one in Figure 3 will be shown. Done.

TotalValidator Basic v 11.7.0 Validated OK.
Figure 3: TotalValidator Basic v 11.7.0: The file has validated OK.