HTML and CSS Reference
To Validate a Web Page
desired, you should validate the page at the w3.org Web site.
Open Internet Explorer, navigate to the Web site validator.w3.org , and then click
the Validate by Upload tab.
Click the Browse button.
Locate the chapter9-1solution.html file on your storage device, click the filename, and
then click the Open button on the Choose File to Upload dialog box.
Click the Check button to validate the file.
When I validated, it said it passed as HTML5, but it had a warning?
Because HTML5 has not been finalized and adapted by all browsers, the warning just lets you
know that your markup is valid for HTML5, but it may encounter problems with any browser
that does not adhere to HTML5 specifications.
To Print an HTML File
After completing and testing the Web page, you should print the HTML file using
Notepad++ for future reference.
Click the Notepad++ icon on the taskbar and click the chapter9-1solution.html tab to
activate the file.
Click File on the menu bar and then click Print. Click the Print button in the Print dialog box.
To Quit Notepad++ and the Browser
statements and their
Reference (Appendix G) at
the back of this topic, or
Reference Web page at
In Notepad++, click the File menu, then Close All.
Click the Close button on the Notepad++ window title bar.
Click the Close button on all open browser windows.
learned in this chapter.
1. Enter a <div> Tag Container (HTML 416)
2. Enter the Start <script> and Comment Tags
3. Extract the Current System Date Using the Date()
Object (HTML 423)
4. Calculate the Number of Days to a Future Date
5. Display Text and Variable Values to a Web Page
Using innerHTML (HTML 427)
6. Enter the User-Defined Function to Change the
Browser Scroll Bar Color (HTML 428)
7. Enter the User-Defined Function to Link to a
New URL Using the Drop-Down Menu
8. Include the Date Last Modified and a Copyright
Message in a Text String (HTML 433)
9. Enter the End Comment and End </script> Tags
10. Associate User-Defined Functions with the onLoad
Event (HTML 435)
11. Associate a User-Defined Function with the
onChange Event (HTML 436)