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


Barton68
10-06-2008, 12:08 PM
Hello,

I've got a strange error, and no too sure what it may be, any ideas?

Error Message Box (http://www.austrianmonarchycatering.com/Clipboard01.jpg)

If I enter a category by clicking the left hand menu, I get the error. If I refresh (F5) the same page selected by the menu, the error does not occur.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>


Thanks,

Barton

opifex
10-06-2008, 04:11 PM
change to

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

or
delete xmlns="http://www.w3.org/1999/xhtml"


and you do have a couple of errors....

the <form> element cannot be inside the <p> element

Barton68
10-07-2008, 01:50 PM
Thanks for the reply, tried both methods and the error still occurs.

I use the same tag code on my other websites, hosted on streamline.net, but these are new sites on HostMonster.com. Could there be an issue with config?

Thanks,

Barton.

opifex
10-07-2008, 02:56 PM
what is the actual source of index.php? is the head being generated from a module or include?