View Full Version : Wc3 error
hammy
15-03-2012, 03:37 PM
Hi, I have one error on my site which is
Line 3, Column 1: Missing xmlns attribute for element html. The value should be: http://www.w3.org/1999/xhtml
I have googled but really dont understand, Do I have to edit a file and if so which on?. Do I have to add a file and if so what file and where does it go?.
Thanks web gurus
Vectis
15-03-2012, 03:43 PM
Stick
<html xmlns="http://www.w3.org/1999/xhtml">
as a discrete line immediately after the <!DOCTYPE> declaration.
hammy
15-03-2012, 03:46 PM
Stick
<html xmlns="http://www.w3.org/1999/xhtml">
as a discrete line immediately after the <!DOCTYPE> declaration.
Thanks Martin but where is this <!DOCTYPE> to be found, I am on control panel now
Excalibur
15-03-2012, 03:57 PM
Was it only me who on reading the title thought Hammy had gone through the wrong door when he wanted a wee? :confused: :o :o :o
hammy
15-03-2012, 04:13 PM
Was it only me who on reading the title thought Hammy had gone through the wrong door when he wanted a wee? :confused: :o :o :o
Guess so ;) ;)
Daryll
15-03-2012, 04:26 PM
Hammy , the <!doctype >is at the top of any page you have , you need to open a page in notepad of something , in dreamweaver , a new page looks like....
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
or from my site.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
etc etc
I am not sure what control panel you are using , try "file manager" click on "public_html" , then right click on , say your index page ( index.html) , and choose edit in rich editor , of course if you are using wordpress , forget what I have just said.....:D :D
Daryll
hammy
15-03-2012, 04:28 PM
of course if you are using wordpress , forget what I have just said.....:D :D
Daryll
Ooops, What now then???
Daryll
15-03-2012, 04:39 PM
Not sure mate , hopefully a wordpress guru will appease soon....:D
I went from wordpress to a static HTML site , it does not have the bells and whistles of a Wordpress based site , but I know how mine works....just
have a look at http://codex.wordpress.org/HTML_to_XHTML , I dont really understand it but...:daft: .
Daryll
Marc J
15-03-2012, 04:40 PM
Ooops, What now then???
Edit the template file(s).
hammy
15-03-2012, 04:40 PM
have a look at http://codex.wordpress.org/HTML_to_XHTML , I dont really understand it but...:daft: .
Daryll
I had read that before posting and it was like a chinese man who couldnt speak a word of english had a 10 hour conversation with me expecting me to understand. :eek:
hammy
15-03-2012, 04:46 PM
Edit the template file(s).
Thanks Marc, They dont have any DOCtyp in them, the only one that does is the header.php and that already has <html xmlns="http://www.w3.org/1999/xhtml"> on line 3
digga
15-03-2012, 05:32 PM
Hammy, which site is this for? What's the URL?
I've checked your wedding site and that validates perfectly.
hammy
15-03-2012, 05:34 PM
Hammy, which site is this for? What's the URL?
I've checked your wedding site and that validates perfectly.
www.hammys-entertainment.co.uk
digga
15-03-2012, 06:19 PM
Ahh, I think I see the problem here. Your main page is embedded inside a frame page. When you try to validate the page, all that is checked is the frame, and not the content inside.
This is what the validator sees:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html>
<head>
<title>Hammys Entertainment</title>
<meta name="keywords" content="mobile disco eastbourne" />
<meta name="description" content="mobile disco eastbourne" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
</head>
<frameset rows="100%">
<frame src="http://79.170.44.85/hammys-entertainment.co.uk/" title="Hammys Entertainment" frameborder="0" noresize="noresize"/>
<noframes>
<body>
<h1>Hammys Entertainment</h1>
<p><a href="http://79.170.44.85/hammys-entertainment.co.uk/">http://hammys-entertainment.co.uk/</a></p>
</body>
</noframes>
</frameset>
</html>
You will need to get in to this frame page to add the following:
<!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">
Hope this helps in some way.
hammy
15-03-2012, 06:21 PM
Hope this helps in some way.
Thanks Peter it really really does, I have redirected it by frame, So I guess thats what is causing it. :daft: :daft: :daft:
hammy
15-03-2012, 06:25 PM
Oh dear I took it off the frame direct and stumbled on 22 wc3 errors :D :D :D
Jiggles
15-03-2012, 10:45 PM
I prefer <!DOCTYPE html> :sj:
Vectis
16-03-2012, 08:48 AM
I prefer <!DOCTYPE html> :sj:
Don't we all... unfortunately some of us live in the real world :p
Jiggles
16-03-2012, 11:01 AM
Don't we all... unfortunately some of us live in the real world :p
I don't like standing in the way of progress. :p Sites I build are HTML5. With the tweaks for the people who don't care about what they see on the Internet. :D Why should I back down from making a website that uses modern coding? Not really my fault people don't upgrade or switch to a better browser. :sj:
Anyway totally off topic here.
hammy
16-03-2012, 11:03 AM
:ontopic: thanks
hammy
16-03-2012, 11:35 AM
I now have it down to one error, Can I find where it is (even though the validator shows me) no I cant.
Marc J
16-03-2012, 11:39 AM
I now have it down to one error, Can I find where it is (even though the validator shows me) no I cant.
The homepage checks out OK with me. The rest don't, though!
hammy
16-03-2012, 11:40 AM
Oh dear, I forgot I had to do it page by page, here we go again :D
hammy
16-03-2012, 04:21 PM
Ok so now I have given up on wordpress for 2 reasons
1. It looks so un-professional. (In my opinion)
2. I have this nagging voice going round my head that keeps saying " I hate wordpress, All the sites look the same", Now I wonder who that was that said that to me, Will the culprit own up I wonder. :D :D .
Now building a joomla site which is looking good.
Marc J
16-03-2012, 04:25 PM
IMHO there's nothing wrong with your current site. Don't ditch it because of a few minor validation issues - nobody really cares about them :eek:
What are your reasons for hating Wordpress? I've got a feeling you'll hate Joomla just as much (or maybe even more).
Don't waste your time fixing something that isn't broke.
hammy
16-03-2012, 04:33 PM
IMHO there's nothing wrong with your current site. Don't ditch it because of a few minor validation issues - nobody really cares about them :eek:
What are your reasons for hating Wordpress? I've got a feeling you'll hate Joomla just as much (or maybe even more).
Don't waste your time fixing something that isn't broke.
Joomla is very hard to get my head around but so far I do like the look and feel a bit more, Im only building it at the moment and will see when finished.
Powered by vBulletin® Version 4.2.0 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.