Your script should start out with the three required tags stated above, and the closing tags that go with them.

<HTML>
<HEAD>
<BODY>
</BODY>
</HEAD>
</HTML>

You with me so far? Good. The order of the closing tags are very important. They must be nested to work properly most of the time. The term nested can be explained in an example.

<HEAD><BODY></HEAD></BODY> These tags are NOT NESTED