HTML and CSS Reference
In-Depth Information
To Validate a Web Page
Now that you have tested the Web page and made sure the JavaScript works as
desired, you should validate the page at the w3.org Web site.
1
Open Internet Explorer, navigate to the Web site validator.w3.org , and then click
the Validate by Upload tab.
2
Click the Browse button.
3
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.
4
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.
1
Click the Notepad++ icon on the taskbar and click the chapter9-1solution.html tab to
activate the file.
2
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
Quick Reference
For a list of JavaScript
statements and their
associated attributes,
see the JavaScript Quick
Reference (Appendix G) at
the back of this topic, or
visit the JavaScript Quick
Reference Web page at
www.cengagebrain.com.
1
In Notepad++, click the File menu, then Close All.
2
Click the Close button on the Notepad++ window title bar.
3
Click the Close button on all open browser windows.
Chapter Summary
In this chapter, you learned basic JavaScript concepts and how to write and insert JavaScript code to make your Web
page more dynamic and interactive. The items listed below include all the new HTML and JavaScript skills you have
learned in this chapter.
1. Enter a <div> Tag Container (HTML 416)
2. Enter the Start <script> and Comment Tags
(HTML 418)
3. Extract the Current System Date Using the Date()
Object (HTML 423)
4. Calculate the Number of Days to a Future Date
(HTML 425)
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
(HTML 431)
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
(HTML 434)
10. Associate User-Defined Functions with the onLoad
Event (HTML 435)
11. Associate a User-Defined Function with the
onChange Event (HTML 436)
 
Search WWH ::




Custom Search