Forum Moderators: open

Message Too Old, No Replies

html error question

Get error saying page might not display properly

         

zeekstern

10:35 pm on Jul 8, 2005 (gmt 0)

10+ Year Member



Hi All,

I get an error when going to my website saying that the page might not display properly. The error is:

Line 4
Char 1
Code 0
Error: syntax error

Line 4 is
<script><endnote><head>

Here is the first couple of lines:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script><endnote><head>
<script><endnote><head>
<script><endnote><head>
<script></script>
<meta name="robots" content="follow">
I thought it might be because of the spaces, but I wasn't able to delete them. Anyone know why I get the error? Oh, I forgot to mention, I get the error in IE, not Firefox.

Thanks!
Zeek

mogenshoj

11:09 pm on Jul 8, 2005 (gmt 0)

10+ Year Member



Your html should be something like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script>something here</script>
<script>something here</script>
<script>something here</script>
<script>something here</script>
<meta name="robots" content="follow">
</head>
<body>

</body>
</html>

-----
The <head> tag should only be used once. The script tags should be used for whatever script is there:
Ex.
<script language="JavaScript">some script</scipt>

Don't know what that endnote you put in there is?

Im pretty sure <meta name="robots" content="follow"> has no effect (but also has nothing to do with your error), but searchengines will follow your links even if you don't have it. Only no-follow and similar has any effect. (maybe someone will correct me on this if im wrong.)

zeekstern

11:30 pm on Jul 8, 2005 (gmt 0)

10+ Year Member



Thanks for the great reply Mogenshoj! This site was set up by someone else and I don't know html. What I posted is exactly from the website. Would you agree that there is no script? Darned if I saw any:)) Looks to me like I could just delete all that stuff.

I don't understand your question about the endnote.

Thanks again,

Zeek

zeekstern

11:44 pm on Jul 8, 2005 (gmt 0)

10+ Year Member



I just deleted those script lines and that fixed it. Thanks for your help!

Regards,
zeek

Alioc

5:24 am on Jul 9, 2005 (gmt 0)

10+ Year Member



Not about the syntax correction but just in case,

replace
<meta name="robots" content="follow">
with
<meta name="robots" content="index,follow">
to make sure the pages are indexed by SEs when crawled.