Here are the errata for Mastering Integrated HTML and CSS. If you discover anything I have not mentioned here, please let me know.
The sidebar called DOCTYPES and Presentational Attributes gives the impression that attributes of any kind are not allowed in strict DOCTYPES, when, in fact, they are. For example, an id attribute and value is perfectly acceptable in a strict DOCTYPE.
A line is missing from the code sample at the top of the page. It should read:
<title>Chapter 2: a paragraph</title>
<style type="text/css">
. . .
Also on page 27, further testing in Firefox and Safari with the code block wrapped in the CDATA declaration shows that the internal style rule is not taken into effect using the code as shown. Using CDATA is meant for XHTML pages that are served as application/xhtml+xml
, not as text/html
as the examples in this book are.
The recommended DOCTYPE declarations beginning on page 45 should be used in preference to the slightly different DOCTYPE declarations that you see in some of the code samples in the book.
When a value of 0 is assigned to to a CSS declaration, for example,
body {
padding: 0;
}
then there is no need for a measure such as px
to be declared.
In the third paragraph, the sentence in parenthesis should read: Instead, you see the color set for the background of the content
div, white, in this particular design.
A number can be the first character in a folder or file name.
The section called Use an ID points out that an id
might be a better option that an named anchor, but fails to mention that a number may not be used as the first character in an id
attribute. The example <h2 id="3">
should use a different attribute value.
In Chapter 7, you may find a mistake in some of the links. Some of the links have a _vd appended at the end of the filename, for example ch7groundcover_vd.html. The "_vd" should not be there and should be removed from the href
attribute when you see it.
The sentence "It is also possible to nest other block-level elements within either a dt or dd." should read It is also possible to nest other block-level elements in a dd.
The name
attribute is deprecated for form elements in XHTML.
It is associating a label to its corresponding form control that makes the label text clickable, not wrapping the control in the label element.
It is debatable as to whether a form control and a label are a paragraph. Markup such as <p><label for="name">Your name: </label> . . .
is probably not semantically sound. Since the <p>
elements in this example were used for spacing purposes, a more semantic solution to this presentational requirement would be to create a rule for the label
selector that provided ample margin-top
.
The menu shown in Figure 12.7 is the Tools menu, not the Validation menu. The second paragraph under the gray sidebar should read, I selected the Tools > Validate Section 508 menu command, . . .
MusicAustin was sold shortly after this book was published and cannot be viewed as described here.
Back to Web Teacher