Below is the essential
part of this page - I've left out the div tags and the style
specifications, and such, but they are totally irrelevant to this issue
- I've test with and without them with the same results.
<!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1">
<title>Past HTML End
Testing</title>
</head>
<body>
<br>
<script type="text/javascript">
alert("This script is after the
</body></html> tags - why is it being
executed?");
</script>
Why did that script execute and display the alert? It is after the
</body> and </html> tags?
And why is this text, which is also after the </body> and
</html> tag showing?
--- I left out some of the text at the end of page for the sake of brevity.
Why did that script execute and display the alert? It is after the
</body> and </html> tags?
Is there is a horizontal line below? It and the text after it
is also after the </body> and </html> tags. The
text has style="font-family: Helvetica,Arial,sans-serif; color: blue;
font-weight: bold;" is the style being applied?
I've tried this with FF 3.6.24 and I.E. 8.0.7601.17514 and get the same
results.