Datasheet

Validate the
Web Page
D
reamweaver provides a validation feature that
checks the syntax of your code. The HTML syntax
is validated based on the DTD you selected for
your document. For example, if you chose XHTML 1.0
transitional for your DTD, the syntax is checked using that
standard.
If you create your Web pages using Dreamweaver’s WYSIWYG
editor, Dreamweaver builds your source code and seldom
makes syntax errors. However, if you edit the code yourself,
or if you copied some Web page files into your Local site
from a Web site that already exists, you need to validate the
pages to be sure the syntax is correct.
Dreamweaver displays the results of your validation in the
bottom pane of your window in the Results panel. (Chapter
2 provides more details on using panels.) Each error is listed
in a separate row, showing the line number in your source
code that produced the error. An icon at the beginning of
the line indicates the type of error.
The Web page, created earlier in this chapter, displaying the
text “This is my first Dreamweaver page,” and saved with
the name FirstPage.html, is created by Dreamweaver and
has no syntax errors. To show how the Validator works,
the
</head> tag and the </html> tag were removed
from the source code.
Validate Current Document
2
1
1 Click the Validate button ( ).
2 Click Validate Current Document.
16
Validate the Web Page
Validation results appear at the bottom in
the Results panel.
04_776181 ch01.qxd 2/21/06 8:52 PM Page 16