Homework 2

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

A: True

Q: 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.

A: False

Q: Create an example of a JavaScript definition block that would typically appear on an HTML page within the "HEAD" or "BODY" block.

Q: True or False: Itís important to declare the version of JavaScript being used within the DOCTYPE definition block.

A: False

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

True

Q: Briefly describe what the DOM is.

A: The DOM is the Document-Object model, it provides a tree-like structure that programs can use to change structure, style and content.