USE DOCTYPE STATEMENTS

The first line of the page code in the preceding section is a DOCTYPE statement, such as:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">

This tells the browser which version of HTML you are using; in this case, HTML 4.0 Strict. The newer browsers make decisions about page display based on the DOCTYPE , so if you want to use DOM features in your pages, make sure your page includes an appropriate DOCTYPE .

For more information, see Fixing Your Site with the Right Doctype and Doctype and browser display table Web sites.

Moving On

In this lesson, you learned more about using events and event handlers to create dynamic effects with images and text on your Web pages. You also learned about the DOM, and one of the DOM methods.

This lesson completes the Web Programming Basics course. In these six lessons, you've learned about Web programming languages on the client-side and server-side, how to add scripts to your pages, how to add numbers or text together, how to get input from your visitors using prompts, how to add date and time to your pages, and how to use events and event handlers to create dynamic page effects.

Don't forget to do the assignment and take the quiz. In addition, visit the Message Board one more time to share some final thoughts with your classmates.