Forum Moderators: open

Message Too Old, No Replies

Syntax error when opening page

Please help

         

vinayy

2:15 pm on Dec 11, 2007 (gmt 0)

10+ Year Member



Hi

iam facing a problem when i open my web page in both IE and Firefox. Displaying an syntax error message called

syntax error
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Line 1

can any one help how to fix this?

Thanks

gergoe

2:45 pm on Dec 11, 2007 (gmt 0)

10+ Year Member



If you have placed <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> into a script block, or an external javascript file, then remove it, in any other case the line 1 could mean the first line of an inline javascript code, like in the document body's onload event handler, the href attribute of a link, or an external javascript file. if you check your page with Firefox, you might find your problem faster, as the error console of Firefox gives you details information about the error, and where it can be found.