Perhaps if you posted the code in question we might be able to help a little more?
Also, I believe that some embedded languages don't count "out of tag" (ie <?php and ?>) lines in the line count. For example, if you had;
<?php
echo "<html>";
?>
<head>
...
</html>
<?php
echo This is an error
?>
Then the error would be on line #2, rather than line #8, whether that's true for PHP I don't recall, but it's something to think about considering your "<html>" error line 🙂