At line 17, there is what should be the end of an HTML comment --> but it is --!> Therefore the rest of the page is still considered to be comment and gets mangled up ...