
1032
Part VI
Enhancing Productivity and Web Site Management
Validating and Correcting a Web Page
I
n this Technique, you validate a Web page and then correct the noted errors. Once you pass validation, you
prepare to print out the report.
1. From the Techniques site, expand the 30_Browser_Targeting folder and open the validation_
start file. Note that the page appears normal in Design view.
2. From the Document toolbar, choose Validate Markup: Validate Current Document. The Validation
panel opens and, after the validation is complete, displays the found errors.
3. Double-click the first error. Dreamweaver enters Split view with the offending line of code high-
lighted; you may need to adjust the border to see both Code and Design view equally well.
4. The first error indicates that the alt tag is missing in the highlighted tag; expand the Properties
panel, if necessary, and in the Alt field, enter Frank Gordon; press Tab when you’re done.
5. Double-click the second error in the Validation panel. This error is described as a Nesting error
and the tag following the problematic img tag is highlighted. Because this page is validated under
XHTML rules, all tags must be closed, and this particular img tag is missing a closing slash.
6. Place your cursor before the closing bracket of the img tag and enter a forward slash: /.
7. Double-click the third error in the Validation pa