This is a discussion on "Annoying little syntax error" within the Web Page Design section. This forum, and the thread "Annoying little syntax error are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Annoying little syntax error
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Annoying little syntax error
Hi,
I have been working on a site for ages now, and 1 week before it goes live I all of a sudden am getting syntax error in the bottom left of the browser window. When opening the error dialogue box up it is saying is it on line 2 but I cant see anything. I recently changed the page from stict to transittional, but I have checked that code and it looks fine. The site uses templates so I am assuming it is on the template as every page in the site has the same error. This is the web address - if you could have a quick look and tell me if anything springs to mind that would be great. http://www.macmillan-academy.org.uk/macweb/index.php Thanks |
|
|
|
#2
|
|||
|
|||
|
Re: Annoying little syntax error
As far as I can tell its:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> And it should be: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#3
|
|||
|
|||
|
Re: Annoying little syntax error
Hi,
Thanks for the response but my page doesnt current say <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" http://www.w3.org/TR/html4/loose.dtd It says.... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> I tried changing it to your version but still no luck. Any other suggestions? |
|
#4
|
|||
|
|||
|
Re: Annoying little syntax error
Hmm it did before, FF popped up an error with the doctype. Interesting. Oh well I see no errors on it now.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#5
|
|||
|
|||
|
Re: Annoying little syntax error
Hi,
Thanks I have found the error - it was the make poverty history band on the site. When I commented this out the error was gone. Thanks Adrian |
![]() |
| Tags |
| annoying, little, syntax, error |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] error in SQL syntax but where it all looks fine to me | Andrew1986 | Databases | 3 | Nov 28th, 2007 01:21 |
| Syntax error with Ajax file reading | Paramiliar | JavaScript Forum | 0 | Aug 12th, 2007 16:48 |
| syntax error... | ktsirig | Databases | 2 | Feb 4th, 2007 14:48 |
| error in SQL syntax | Drgreenfingers | Databases | 10 | Jan 30th, 2006 02:00 |
| syntax error: unexpected T_BOOLEAN_AND... | jswebdev | PHP Forum | 4 | Jan 28th, 2006 07:29 |