\n"; } else { header("Content-type: text/html; charset=utf-8"); } ?> Errata for Developing with Web Standards

Errata for Developing with Web Standards by John Allsopp

page 59

The sample code has warandpeace as the value of the for attribute of the label tag, but it uses monkeyinput as the attribute value of the id attribute of the corresponding textarea element. The two attribute values have to match.

Change the third line from the end of the section on Grouping Controls from “…usable form…” to “…usable a form…”.

page 64

Third line after the bullet list, change “…HTML elements…” to “…HTML tags….”

page 86
The selector in the first box should be div, not dd
page 92
The text between the boxes should refer to “unordered” lists instead of “ordered” lists.
page 93

The second box should have a dot before the word “chapter”.

The second number on the last line of the page should be 11, not 12.

page 95
The description of figure 4.4 is either slightly misleading or inaccurate: the background of a box extends through the border. You can see it when the border is not solid.
page 111
The statement that browsers recognize em units only down to 0.1 is not accurate. They typically differentiate between em units down to four decimal places: what ever it takes to achieve one-pixel resolution on the user's screen.
page 139
The function getElementById is miscapitalized in two places near the bottom of the page.c