Objectives
- Add JavaScript to a web page
- Include an external JavaScript file in a web page
- Add inline JavaScript
- Write XHTML code that will allow JavaScript to pass validation
- Add comments within JavaScript source
JavaScript can be added to a web page in a number of ways:
Note: The CDATA delimiters are present to make the web page validate as proper XHTML.