Errata: First Four Print Runs

back to all tools and extras

Sorry folks, there were a couple of errors we did not spot until the fourth print run of this title. These will all be corrected in future print runs. We really hope that they do not spoil your enjoyment of the book.

Got a question about the code we covered in this book? Drop us an email at and we will get back to you as soon as we can.

Page 77

The arrows on the links diagram did not come out accurately, it should look like this:

Updated diagram

Page 120

In the code sample, there is a missing closing forward slash on the <img /> tag.

Page 165

On line 5 of the sample code, there is a closing </title> tag that should not be there.
Also, the <input> tags should have an id attribute whose value matches that of the for attribute on the corresponding label elements.

Page 166

On the third line of sample code, the for attribute should have a value of depart, and the following <input> tag should have an id attribute whose value is depart.

Page 292

The last three attribute selectors (column 3) are missing equals signs.
Prefix selector: p[attr^="d"]
Substring selector: p[attr*="do"]
Suffix selector: p[attr$="g"]

Page 314

The shorthand for the CSS margin property allows you to provide two values: the first is the top and bottom margin, the second is the left and right margin.

Page 321

There should be no commas between the values for border-radius: 5px 10px 5px 10px;