Originally Posted by
Shooty*
... Most peculiar.
Yes, IE6 standards support *is* most peculiar Can I ask *why* you're stuck on IE6? IE8 is a much friendlier browser for web designers to target (frankly even IE7 is better than IE6) and has been released for long enough to be stable and reliable now...
You've given an xhtml doctype / DTD, declared an xhtml namespace, then set a header stating the content-type is text/html. This isn't a problem in itself; xhtml pages can be served as html and should be understood by a browser, but you might find it preferable to specify html syntax; it's much more forgiving of badly formed pages than xhtml strict . To do this, simply change
Code:
<!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">
to
Code:
<!DOCTYPE html>
<html>
This gets rid of any markings that the page might be xhtml, and lets you be a bit looser about your markup: for instance, I believe xhtml strict requires you to use the shorthand closing method for elements with an "empty" content model, whereas html will allow either the short or long methods, or even an implicit close (this is the difference between, e.g., <link rel="stylesheet" ... />, <link rel="stylesheet" ...></link>, and <link rel="stylesheet" ... >). While I use xhtml 1.0 Transitional in my day job, all the websites I do on the side use the <!DOCTYPE html> setup and work beautifully.
Incidentally, if you did want to serve the page as xhtml from the server, you'd need to reinsert the <?xml... lines Flash477 said to take out (XHTML documents are *also* xml documents, so you need at least an <?xml version="1.0"?> if you want them to be understood as xml), and change the
Code:
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
to
Code:
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
However, I'd personally take the actions I suggest above to convert the page to html: if you don't need the page to be understood as xml, using xhtml syntax doesn't really offer any advantage...
In terms of improving maintainability, I'd also go through the pages and remove any unnecessary tags and attributes - there's a lot of <div> ... </div> going on where there are placeholders for content that isn't there, and there's a bunch of links with the rel attribute that isn't necessary. Theoretically they shouldn't affect anything, but again this is IE6 we're talking about so you never know!
For what it's worth, the page looks fine in Chrome 6.0.472.63 - but I did notice that your contact page is a php script and it looks like your webserver isn't set up to process it properly - I assume you know that and it'll be sorted out before anything goes live, but thought I'd mention it while I was here