Client Support Community Server Status Contact Us Client Login
Email Hosting Website Hosting Reseller Hosting VPS Hosting Dedicated Servers

    Join our Community      Check your private messages       Profile       Search       FAQ       Memberlist       Log in


Help with validation XHTML

 
Post new topic   Reply to topic    NetHosted Community Index -> Web Design
rhinoian Reply with quote
 Community Liason

 

 Joined: 25 Nov 2004
 Posts: 631
 Location: Manchester

PostPosted: Fri Mar 31, 2006 12:56 pm    Post subject: Help with validation XHTML
 
Can anyone see what is going wrong with my Doctype and Meta tags for this page to stop it from validating? It is driving me potty and from the W3C website, it sems OK.

Thanks, Ian


Quote:

Unknown Parse Mode!

The MIME Media Type (text/html) for this document is used to serve both SGML and XML based documents, and it is not possible to disambiguate it based on the DOCTYPE Declaration in your document. Parsing will continue in SGML mode.
Namespace Found in non-XML Document

Namespace "" found, but document type is not XML!


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

<meta http-equiv="Content-Type" content="text/xhtml+xml; charset=ISO-8859-1">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" >


<meta name="keywords" content="veterinary, surgeons, bury, tottington, bolton, manchester, lancashire, rochdale, oldham, rossendale, ramsbottom, bl8, bl9, cat, dog, rabbit, fish, hamster, gerbil, rat, mouse, guinea pig, reptile, snake, tortoise, lizard, bird, parrot, macaw, african, cockatoo, budgie, cockatiel, exotics, pennine, vets, pet, referral" >
<meta name="description" content="Pennine Vets, Tottington, Bury - A small animal &amp; exotic pet veterinary surgery offering high quality veterinary care" >
<meta name="author" content="Ian Mostyn, Pennine Vets" >
<meta name="generator" content="HTML-Kit, Top Style Lite" >
<meta name="copyright" content="&copy;2005 Pennine Vets">
<meta http-equiv="Content-Script-Type" content="text/javascript">


<title>Pennine Vets, Bury</title>

<link rel="stylesheet" type="text/css" media="screen" href="css/mainstyle2.css" >
<link rel="stylesheet" type="text/css" media="print" href="css/printstyle.css" >

</head>

_________________
Hard to find and premium pet products at Pennine Vets 
Back to top
View user's profile Send private message Visit poster's website
Mike T Reply with quote
 Community Liason

 

 Joined: 26 Apr 2004
 Posts: 453
 Location: Loughborough

PostPosted: Fri Mar 31, 2006 1:44 pm    Post subject:
 
I'm not entirely sure, but I think it's because your DOCTYPE is a hybrid (and by that I mean you are saying "XHTML 1.1 Strict" and pointing at the XHTML 1.0 Strict DTD file)...

It's

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//EN"
"http://w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


And it should be

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">


I think.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
rhinoian Reply with quote
 Community Liason

 

 Joined: 25 Nov 2004
 Posts: 631
 Location: Manchester

PostPosted: Fri Mar 31, 2006 1:54 pm    Post subject:
 
Thanks Mike!

It now works as XHTML 1.1. I have also worked out what I had done wrong. XHTML 1.0 has the 3 flavours (frameset, transitional and strict) but XHTML 1.1 is essentially just strict so no extra declarations are needed. My code was XHTML 1.0 Strict and works as 1.1 if I get my DTD right. Simple when I think about it.

Cheers, Ian

_________________
Hard to find and premium pet products at Pennine Vets 
Back to top
View user's profile Send private message Visit poster's website
Post new topic   Reply to topic    NetHosted Community Index -> Web Design
Page 1 of 1

User Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

 
Jump to: