Interpreting Error Reports

Although it's certainly nice to get a "no errors" report on the first pass through the validator, not every document will succeed. Your next task, then, is learning how to interpret the error reports given by the validator. Listing 8.1 is a simple XHTML document that contains a few well- formedness errors.

Code Listing 8.1. trip.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Shopping List
</head>
<body>
<h1>Things to get before the trip</h2>
<p>Before we leave, we need:
<ul>
<li>Beach towels</li>
<li>Sunblock</li>
<li>New snorkels
<li>Flippers for Linda</li>
</Ul>
</body>
</html>
					

Type up and upload this page to your Web site, and you can run it through ...

Get XHTML by Example 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.