Homework #2


1. True or False: JavaScript is defined by a standards body and is supported on all web browsers.

True, but each browser supports it differently; making our job as programmers harder.

2. True or False: When a visitor whose machine has JavaScript disabled comes to your website, you should block his access to the site because thereís no valid reason to have JavaScript disabled.

False, many people have JaveScript disabled for safety concerns. You should never limit website viewers.

3. Create an example of a JavaScript definition block that would typically appear on an HTML page within the head or body block.
<script type = "text/javascript"> blah blah blah </script> 4. True or False: Itís important to declare the version of JavaScript being used within the DOCTYPE definition block.

False.

5. True or False: JavaScript can appear in the block and within the text of an HTML page.

True.

6. Briefly describe what the DOM is.

DOM = Document Object Model is a standard developed by W3C. The DOM is described as "a platform- and language- neutral interface that allows programs and scripts to dynamically access and update the content structure, and style of documents.