ptg16476052
580 LESSON 21: Designing for the Mobile Web
As you can see, the first line is the error. In this case, it’s that the button tag has an
illegal attribute, href, assigned to it. Then the validator gives you the line number in the
HTML and even the column number where the error was found. Below that the problem
tag is highlighted in yellow. Finally, if possible, the validator shows you the relevant
part of the specification—in this case, listing the attributes that are valid on the button
tag. This makes it easy to go through your page line by line and fix the problems that are
found.
After you’ve fixed all the errors, the only messages your site will get will be the two
informational messages, as you can see in Figure 21.3.
FIGURE 21.2
The W3C Validator
validating
Pearson.com.