Changes needed for chapter.htm to pass validation at
validator.w3.org

(Number in parentheses is number of errors)

(153)

Fixed comments <!---... xxx ...---> to <!-- ===== ... ====== -->

(51)

Changed doctype from xhtml to html

(21)

Changed /> to > (/> is an xhtml close)

(19)

Added types to all script tags

(15)

Temporarily made a literal <title> instead of writing it from javascript.

(14)

Changed all tag closes (e.g. "</i>") within javascript strings
in the <head>
to e.g. "<\/i>" as explained here:
http://www.htmlhelp.com/tools/validator/problems.html#script

(1)

Temporarily changed from writing <div > from js to a literal one, to avoid
having </div> deemed extra.

(0)

----------------
TITLE:

Putting javascript within literal title tags is deemed an error.
But this works:
<title></title>
and next, document.title = "blah";