Forum Moderators: open
will load, but IE6 recognizes a syntax error and I can't find it. The first error it finds is line 2, character 1. What am I not seeing? I have checked and checked with html validators to no avail. Any other option to locate the error?
I am no html wizard, I am learning.
-Sue
[edited by: susanlprince at 9:00 pm (utc) on Jan. 18, 2003]
Syntax is the order in which words and phrases are put together, such as a URL (web address) which consists of several phrases that are strung together to define a location or service on the Internet. A syntax error occurs when a user (or programmer) has put words in an order that a program does not understand. A syntax error while surfing the Web may be caused by a mistyped or inadvertently rearranged URL, making it incomprehensible to a web browser.
But I don't see all that much of a problem from what you've posted.
Sticky me the URL and I'll run it thru ARV and see if I can find anything.
Pendanticist.
I am new to html and the javascript on the page probably comes from whatever scripts I've gotten from certain other sites. I no nothing of writing my own stuff.
<script type="text/javascript" src="archive.html"></script>
<script type="text/javascript"
Would that mean I have text javascript?
<script type="text/javascript" language="JavaScript">var site="s14susanlprince"</script>
<script type="text/javascript" language="JavaScript1.2" src="http://s14.sitemeter.com/js/counter.js?site=s14susanlprince">
</script>
Sorry, I am very ignorant!
-Sue
Smart quotes are those "curly" quotes that word processors sometimes use - they curve in or curve out around the quoted words, rather than going straight up and down. Depending on the application used to write or copy/paste code, I've seen people end up with smart quotes in their document.
Smart quotes may look OK on the screen, but down at the programming level they're a totally different character entity, and not OK at all.
<script type="text/javascript" src="archive.html"></script>
The file name archive.html may be causing parsing problems. External javascript files should have an extension of .js, not .html
That being said, it's lines 1 and 2 of THAT file where Explorer is saying you have a syntax problem, not your principle HTML file.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
"http://www.w3.org/TR/REC-html40/loose.dtd">
I think this should be:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
This latter doesn't close the tag too early, as the former appears to, the browser is obviously having problems with the lack of proper tag syntax.
Using the Mozilla or Phoenix [texturizer.net] browser, you get much more detailled JavaScript error messages (in Tools > JavaScript Console) than with IE, so that might help find the problem as well.