Click to See Complete Forum and Search --> : HTML Syntax errors


Amanda360
07-01-2003, 05:11 AM
i ran my site through a HTML doctor and it gave me a list of 347 HTML Syntax errors...

i'm still new to HTML and java and wanted to know if theres an easy way of fixing these errors other than going through the code line by line?

Line # Error/Warning Description

line 1 Error: empty container element <SCRIPT>.

line 285 Warning: markup embedded in a comment can confuse some browsers.

line 306 Error: should not have whitespace between "<" and "document.links.length; al++) {

line 306 Error: unknown element <document.links.length;>.

line 306 Error: <BR> cannot appear in the HEAD element.

line 306 Error: unknown attribute "+" for element <a>.

line 306 Error: unknown attribute "DOCUMENT.LINKS[AL].HREF" for element <a>.

line 306 Error: attribute + is repeated in element <a>

line 306 Error: unknown attribute ""\"" for element <a>.

line 306 Error: <A> cannot appear in the HEAD element.

line 306 Error: unmatched </P> (no matching <P> seen).

line 319 Error: metacharacter '>' should be represented as '&gt;'

line 322 Error: metacharacter '>' should be represented as '&gt;'

line 327 Error: metacharacter '>' should be represented as '&gt;'

line 329 Error: metacharacter '>' should be represented as '&gt;'

line 330 Error: metacharacter '>' should be represented as '&gt;'

line 361 Error: should not have whitespace between "<" and "allTables.length; at++ ) {

line 361 Error: unknown element <allTables.length;>.

line 361 Error: unknown attribute "+" for element <A>.

line 361 Error: unknown attribute "ADDUSER.TOLOWERCASE().REPLACE(/(\S*)/IG," for element <A>.

line 361 Error: unknown attribute """)" for element <A>.

line 361 Error: attribute + is repeated in element <A>

line 361 Error: unknown attribute "".SHOWPUBLICPROFILE" for element <A>.

line 361 Error: <A> cannot appear in the HEAD element.

line 361 Error: <SPAN> cannot appear in the HEAD element.

line 361 Error: unmatched </FONT> (no matching <FONT> seen).

line 398 Error: should not have whitespace between "<" and "allProfiles.length; xp++) {

line 398 Error: unknown element <allProfiles.length;>.

line 404 Error: should not have whitespace between "<" and "b) ? -1

line 404 Error: unknown element <b)>.

line 437 Error: no closing </SPAN> seen for <SPAN> on line 361.

line 437 Error: no closing </A> seen for <A> on line 361.

line 437 Error: unexpected < in <body text=#32cd32 bgcolor=#000000 link=#32cd32 vlink=#95CAFF alink=#99CCFF <body text=#980517 bgcolor=#000000 link=00CCFF vlink=00CCFF alink=00CCFF > -- potentially unclosed element.

line 437 Error: unknown attribute "<BODY" for element <body>.

line 437 Error: attribute TEXT is repeated in element <body>

line 437 Error: attribute BGCOLOR is repeated in element <body>

line 437 Error: attribute LINK is repeated in element <body>

line 437 Error: attribute VLINK is repeated in element <body>

line 437 Error: attribute ALINK is repeated in element <body>

line 437 Error: illegal value for VLINK attribute of body (00CCFF)

line 437 Error: illegal value for LINK attribute of body (00CCFF)

line 437 Error: illegal value for ALINK attribute of body (00CCFF)

line 443 Error: tag <HTML> should only appear once. I saw one on line 1!

line 444 Error: tag <HEAD> should only appear once. I saw one on line 1!

line 445 Error: tag <TITLE> should only appear once. I saw one on line 1!

line 445 Warning: The HTML spec. recommends the TITLE be no longer than 64 characters.

line 522 Warning: markup embedded in a comment can confuse some browsers.

line 529 Error: tag <BODY> should only appear once. I saw one on line 437!

line 572 Error: element <EMBED> is not a container -- </EMBED> not legal.

line 588 Error: empty container element <A>.

line 617 Error: empty container element <B>.

line 621 Error: empty container element <B>.

line 625 Error: empty container element <B>.

line 636 Error: empty container element <FONT>.

line 643 Error: empty container element <SPAN>.

line 645 Error: empty container element <FONT>.

line 647 Error: illegal value for DIRECTION attribute of marquee (up)

line 647 Error: unknown element <right>.

line 647 Error: empty container element <U>.

line 647 Error: unknown element </right>.

line 647 Error: unmatched </P> (no matching <P> seen).

line 661 Error: empty container element <FONT>.

line 668 Error: empty container element <SPAN>.

line 670 Error: empty container element <FONT>.

line 672 Error: illegal value for DIRECTION attribute of marquee (up)

line 672 Error: unknown element <right>.

line 672 Error: empty container element <U>.

line 672 Error: unknown element </right>.

line 672 Error: unmatched </P> (no matching <P> seen).

line 686 Error: empty container element <FONT>.

line 693 Error: empty container element <SPAN>.

line 695 Error: empty container element <FONT>.

line 697 Error: illegal value for DIRECTION attribute of marquee (up)

line 697 Error: unknown element <right>.

line 697 Error: unknown element </right>.

line 697 Error: unmatched </P> (no matching <P> seen).

line 716 Error: unexpected < in <td width="165" height="128"< align="center"> -- potentially unclosed element.

line 716 Error: unknown attribute "<" for element <td>.

line 716 Error: empty container element <TD>.

line 762 Error: odd number of quotes in element <td width="118"">.

line 762 Error: unknown attribute """ for element <td>.

line 764 Error: empty container element <B>.

line 773 Error: odd number of quotes in element <td width="118" bgColor="#1F1D18" height="1" style="font-size

line 773 Error: attribute HEIGHT is repeated in element <td>

line 773 Error: unknown attribute """ for element <td>.

line 777 Error: should not have whitespace between "<" and "<option value="http

line 777 Error: unknown element <<option>.

line 777 Error: unmatched </OPTION> (no matching <OPTION> seen).

line 781 Error: metacharacter '>' should be represented as '&gt;'

line 791 Error: empty container element <A>.

line 791 Error: empty container element <I>.

line 799 Error: odd number of quotes in element <td width="118" background="http

line 799 Error: unknown attribute """ for element <td>.

line 799 Error: attribute HEIGHT is repeated in element <td>

line 804 Error: odd number of quotes in element <td width="118" bgColor="#1F1D18" height="1" style="font-size

line 804 Error: attribute HEIGHT is repeated in element <td>

line 804 Error: unknown attribute """ for element <td>.

line 814 Error: empty container element <A>.

line 814 Error: empty container element <I>.

line 822 Error: odd number of quotes in element <td width="118" background="http

line 822 Error: unknown attribute """ for element <td>.

line 822 Error: attribute HEIGHT is repeated in element <td>

line 827 Error: odd number of quotes in element <td width="118" bgColor="#1F1D18" height="1" style="font-size

line 827 Error: attribute HEIGHT is repeated in element <td>

line 827 Error: unknown attribute """ for element <td>.

line 837 Error: empty container element <A>.

line 837 Error: empty container element <I>.

line 844 Error: odd number of quotes in element <td width="118" background="http

line 844 Error: unknown attribute """ for element <td>.

Amanda360
07-01-2003, 05:13 AM
line 844 Error: attribute HEIGHT is repeated in element <td>

line 849 Error: odd number of quotes in element <td width="118" bgColor="#1F1D18" height="1" style="font-size

line 849 Error: attribute HEIGHT is repeated in element <td>

line 849 Error: unknown attribute """ for element <td>.

line 859 Error: empty container element <A>.

line 859 Error: empty container element <I>.

line 867 Error: odd number of quotes in element <td width="118" background="http

line 867 Error: unknown attribute """ for element <td>.

line 867 Error: attribute HEIGHT is repeated in element <td>

line 872 Error: odd number of quotes in element <td width="118" bgColor="#1F1D18" height="1" style="font-size

line 872 Error: attribute HEIGHT is repeated in element <td>

line 872 Error: unknown attribute """ for element <td>.

line 876 Error: odd number of quotes in element <td width="118" bgColor="#1F1D18" height="88" style="font-size

line 876 Error: attribute HEIGHT is repeated in element <td>

line 876 Error: unknown attribute """ for element <td>.

line 878 Warning: IMG does not have ALT text defined.

line 881 Error: odd number of quotes in element <td width="118" bgColor="#1F1D18" height="1" style="font-size

line 881 Error: attribute HEIGHT is repeated in element <td>

line 881 Error: unknown attribute """ for element <td>.

line 912 Error: odd number of quotes in element <td width="118" background="http

line 912 Error: unknown attribute """ for element <td>.

line 912 Error: attribute HEIGHT is repeated in element <td>

line 917 Error: odd number of quotes in element <td width="118" bgColor="#1F1D18" height="1" style="font-size

line 917 Error: attribute HEIGHT is repeated in element <td>

line 917 Error: unknown attribute """ for element <td>.

line 921 Error: odd number of quotes in element <td width="118" bgColor="#1F1D18" height="88" style="font-size

line 921 Error: attribute HEIGHT is repeated in element <td>

line 921 Error: unknown attribute """ for element <td>.

line 923 Warning: IMG does not have ALT text defined.

line 926 Error: odd number of quotes in element <td width="118" bgColor="#1F1D18" height="1" style="font-size

line 926 Error: attribute HEIGHT is repeated in element <td>

line 926 Error: unknown attribute """ for element <td>.

line 957 Error: odd number of quotes in element <td width="118" background="http

line 957 Error: unknown attribute """ for element <td>.

line 957 Error: attribute HEIGHT is repeated in element <td>

line 962 Error: odd number of quotes in element <td width="118" bgColor="#1F1D18" height="1" style="font-size

line 962 Error: attribute HEIGHT is repeated in element <td>

line 962 Error: unknown attribute """ for element <td>.

line 966 Error: odd number of quotes in element <td width="118" bgColor="#1F1D18" height="88" style="font-size

line 966 Error: attribute HEIGHT is repeated in element <td>

line 966 Error: unknown attribute """ for element <td>.

line 968 Warning: IMG does not have ALT text defined.

line 971 Error: odd number of quotes in element <td width="118" bgColor="#1F1D18" height="1" style="font-size

line 971 Error: attribute HEIGHT is repeated in element <td>

line 971 Error: unknown attribute """ for element <td>.

line 1005 Error: empty container element <FONT>.

line 1006 Error: empty container element <FONT>.

line 1009 Error: odd number of quotes in element <td style="font-size

line 1009 Error: attribute HEIGHT is repeated in element <td>

line 1009 Error: unknown attribute """ for element <td>.

line 1117 Error: odd number of quotes in element <td width="118" background="http

line 1117 Error: unknown attribute """ for element <td>.

line 1117 Error: attribute HEIGHT is repeated in element <td>

line 1119 Error: empty container element <FONT>.

line 1122 Error: odd number of quotes in element <td width="118" bgColor="#1F1D18" height="1" style="font-size

line 1122 Error: attribute HEIGHT is repeated in element <td>

line 1122 Error: unknown attribute """ for element <td>.

line 1130 Error: empty container element <FONT>.

line 1136 Error: empty container element <A>.

line 1136 Error: empty container element <I>.

line 1144 Error: odd number of quotes in element <td width="118" bgColor="#1F1D18" height="92" style="font-size

line 1144 Error: attribute HEIGHT is repeated in element <td>

line 1144 Error: unknown attribute """ for element <td>.

line 1152 Error: empty container element <B>.

line 1158 Error: empty container element <A>.

line 1165 Error: empty container element <SCRIPT>.

line 1167 Error: unknown attribute "BORDER" for element <a>.

line 1167 Error: unknown attribute "/" for element <a>.

line 1167 Error: empty container element <A>.

line 1198 Error: metacharacter '>' should be represented as '&gt;'

line 1198 Warning: IMG does not have ALT text defined.

line 1198 Error: unknown attribute "/" for element <img>.

line 1198 Error: illegal value for BGCOLOR attribute of td ()

line 1199 Error: illegal value for BGCOLOR attribute of td ()

line 1213 Error: unknown element <document.links.length;k++){>.

line 1226 Error: unknown element <document.links.length;k++){>.

line 1272 Error: element <EMBED> is not a container -- </EMBED> not legal.

line 1282 Error: unknown element <document.links.length;k++){>.

line 1292 Error: unknown element <document.links.length;k++){>.

line 1299 Error: unknown element <document.links.length;k++){>.

line 1307 Error: unknown element <document.links.length;k++){>.

line 1315 Error: unknown element <document.links.length;k++){>.

line 1323 Error: unknown element <document.links.length;k++){>.

line 1333 Error: unknown element <document.links.length;k++){>.

line 1342 Error: unknown element <document.links.length;k++){>.

line 1351 Error: unknown element <document.links.length;k++){>.

line 1360 Error: unknown element <document.links.length;k++){>.

line 1369 Error: unknown element <document.links.length;k++){>.

line 1378 Error: unknown element <document.links.length;k++){>.

line 1387 Error: unknown element <document.links.length;k++){>.

line 1396 Error: unknown element <document.links.length;k++){>.

line 1405 Error: unknown element <document.links.length;k++){>.

line 1414 Error: unknown element <document.links.length;k++){>.

line 1423 Error: unknown element <document.links.length;k++){>.

line 1432 Error: unknown element <document.links.length;k++){>.

line 1441 Error: unknown element <document.links.length;k++){>.

line 1450 Error: unknown element <document.links.length;k++){>.

line 1457 Error: unknown element <document.links.length;k++){>.

line 1493 Error: no closing </B> seen for <B> on line 647.

line 1493 Error: no closing </MARQUEE> seen for <MARQUEE> on line 647.

line 1493 Error: no closing </FONT> seen for <FONT> on line 646.

line 1493 Error: no closing </TABLE> seen for <TABLE> on line 631.

line 1493 Error: no closing </CENTER> seen for <CENTER> on line 630.

line 1493 Error: no closing </DIV> seen for <DIV> on line 629.

line 1493 Error: no closing </TABLE> seen for <TABLE> on line 612.

line 1493 Error: no closing </CENTER> seen for <CENTER> on line 611.

line 1493 Error: no closing </DIV> seen for <DIV> on line 610.

line 1493 Error: no closing </TABLE> seen for <TABLE> on line 607.

line 1493 Error: no closing </CENTER> seen for <CENTER> on line 606.

line 1493 Error: no closing </DIV> seen for <DIV> on line 605.

line 1493 Error: no closing </DIV> seen for <DIV> on line 603.

line 1493 Error: no closing </TABLE> seen for <TABLE> on line 593.

line 1493 Error: no closing </TABLE> seen for <TABLE> on line 589.

line 1493 Error: no closing </DIV> seen for <DIV> on line 588.

Charles
07-01-2003, 05:16 AM
Originally posted by Amanda360
i'm still new to HTML and java and wanted to know if theres an easy way of fixing these errors other than going through the code line by line? Not only is that the only way to correct the errors, it's the best way for you to learn HTML.

Amanda360
07-01-2003, 05:27 AM
AHHHHHHHHHHHHH! okay now that my screaming is done charles, i'm stuck on my very 1st error...

line 1 Error: empty container element <SCRIPT>.


i check the 1st line of code in my source and this is it


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

i'm sorry... i'm a complete idiot... i don't see an error ...can you point it out to me?

Charles
07-01-2003, 05:36 AM
It's hard to tell without seing the whole document. Upload your file and give us the URL.

But first you need to use a valid DOCTYPE. HTML 4 was superseded by HTML 4.01 back in 1999 and it never did look like that. If you knew what you were doing then I would suggest that you use:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

but as you don't know what you are doing:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

Amanda360
07-01-2003, 06:00 AM
heres my url charles... and i tried attaching the source code but its to big... thanks for the links i'm reading over it right now

http://pub39.ezboard.com/bhoshossurfshop

Charles
07-01-2003, 06:25 AM
I don't know what HTML Doctor you are using, but I ran your page through the real thing, the W3C Validator (http://validator.w3.org/) and didn't see that particular error. Change you DOCTYPE to something current and valid. Specify a character encoding.

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
Use the W3C Validator at http://validator.w3.org/