Getting your JavaScript using Page to Verify as XHTML Strict

To be your javascript using page to verify as strict, if it is not currently verifying as strict do one of the following:

  1. Move your javascript code to another file (likely with a .js file extension)
  2. get rid of the javascript code you just moved to the file
  3. add a src attribute to your script element, whose attribute value is the name of the file containing your code (e.g., <script src="mycode.js"></script>)

Or you can try:

  1. add a new blank line to the very beginning of your script element
  2. type in this text: /* <![CDATA[ */
  3. add a new blank line to the very end of your script element
  4. type in this text: /* ]]> */