|
| |
|
|
peterd123
Posts: 24 Joined: 11/16/2007 Status: offline
|
This page is not Valid (no Doctype found)! - 11/16/2007 17:32:36
I have 21 errors and This page is not Valid (no Doctype found)! Can anyone please advise my URL is http://www.finegbstamps.co.uk I have only just started trying to build a site, so do not know too much in this field. But seem to have built something the military might be interested in, as it runs in complete stealth mode. Pete
|
|
|
|
jurgen
Posts: 446 Joined: 1/9/2007 From: Castle Rock, Colorado Status: offline
|
RE: This page is not Valid (no Doctype found)! - 11/16/2007 19:42:26
There are a lot of posts regarding doc type declarations. For one, you have the wrong doc type in your page: <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> In your case it should read: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"> Fort more information regarding this subject you might want to read this article: http://www.alistapart.com/stories/doctype/
|
|
|
|
peterd123
Posts: 24 Joined: 11/16/2007 Status: offline
|
RE: This page is not Valid (no Doctype found)! - 11/17/2007 5:39:20
Thanks for your help, I have changed the Doctype with the one you advised, but I still find that I'm getting 21 errors and no "doctype found" meesage. I will have a look at the site you mentioned. It's all new to me so will try not to pester everyone too much. Pete
|
|
|
|
jurgen
Posts: 446 Joined: 1/9/2007 From: Castle Rock, Colorado Status: offline
|
RE: This page is not Valid (no Doctype found)! - 11/17/2007 9:43:51
quote:
<! DOCTYPE HTML PUBLIC You have a space in the wrong spot <!DOCTYPE HTML PUBLIC
|
|
|
|
d a v e
Posts: 4409 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: This page is not Valid (no Doctype found)! - 11/19/2007 9:20:04
your google analytics code should be at the very end of all your other code immediately before the closing </body> so move this to there script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-3028970-1"; urchinTracker(); </script> have a look that all your table tags balance and that shuold clear up alot of the rest see how you get on with those and then come back if you're still gettting errors
_____________________________
David Prescott Gekko web design
|
|
|
|
d a v e
Posts: 4409 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: This page is not Valid (no Doctype found)! - 11/20/2007 6:51:51
remove the end / from - that's for xhtml, not for you ;) …v="Content-Type" content="text/html; charset=utf-8"/> take out all the references to border-colour and its variants: use css instead if you need coloured borders the errors to do with ampersands &, you can read about in the error message but basically where you have & you use "&" (without the quotes) try those for now and then see what you're left with ;)
_____________________________
David Prescott Gekko web design
|
|
|
|
peterd123
Posts: 24 Joined: 11/16/2007 Status: offline
|
RE: This page is not Valid (no Doctype found)! - 11/20/2007 15:35:41
Have you got anymore tips on validating my html. thanks Pete
|
|
|
|
d a v e
Posts: 4409 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: This page is not Valid (no Doctype found)! - 11/20/2007 16:39:46
short of learning html, no ;) i'm no longer based in the UK, i'm now living in finland ;) if you have firefox web browser (http://www.mozilla-europe.org/en/products/firefox/) you can install the tidy extension (http://users.skynet.be/mgueury/mozilla/download.html) that will clean up most/all of your html doing this will take you down to 6 errors - concerned with the border colouring and shading that you have - which you would have to replace with css for borders and backgrounds on possibly adjacent cells, but i haven't used tables for layout fo so long i can't remember ;) if you're interested in seeing the cleaned file you can find it here http://pp.kpnet.fi/prescott/stuff/finegbstamps%20co%20uk.zip i suggest you use it to see how the errors were fixed rather than using the file itself. maybe someone else has some ideas on the border shading?? etc
_____________________________
David Prescott Gekko web design
|
|
|
|
peterd123
Posts: 24 Joined: 11/16/2007 Status: offline
|
RE: This page is not Valid (no Doctype found)! - 11/20/2007 18:16:58
Cheers Dave, you have been of great help. But I think i'm going to have to start reading about html if I want to move on. Pete
|
|
|
|
peterd123
Posts: 24 Joined: 11/16/2007 Status: offline
|
RE: This page is not Valid (no Doctype found)! - 11/21/2007 5:07:36
Thanks for the info. I have saved the sites you mentioned, will have a look through them. Pete
|
|
|
|
peterd123
Posts: 24 Joined: 11/16/2007 Status: offline
|
RE: This page is not Valid (no Doctype found)! - 11/21/2007 5:20:03
Yes I agree with you. I look at this as a challenge. I will learn a lot by repairing my site. I was just curious as to why these other sites are working. I am totally new to this, about 2 weeks. But already have learnt so much, mainly due to the good people in this forum. It's anoying when I can see the problem but still can't repair them due to lack of knowledge. It looks like I have to learn 2 packages including HTML and CSS, so will have my time taken up for a while. Thanks Pete
|
|
|
|
mtfm
Posts: 426 Joined: 1/13/2006 From: Mesa, AZ Status: offline
|
RE: This page is not Valid (no Doctype found)! - 11/21/2007 9:50:04
I look at doctypes/etc this way: a doctype is like telling the browser up front what language and dialect you are about to feed it. Unless you explicitly tell the browser what language and dialect you are going to use, it has to guess. Or if you tell it one thing and actually do another it might be reading Chaucer's English when you are writing in Cockney. Or vice versa. Either way, the browser could muddle through, I mean it's all english of a sort, but might get hung up on some of the finer points. So if you tell it what you're going to use, and then use it appropriately, you can be reasonably assured all browsers will read it the same way.
_____________________________
Is this possible? How about this? What about....?
|
|
|
|
peterd123
Posts: 24 Joined: 11/16/2007 Status: offline
|
RE: This page is not Valid (no Doctype found)! - 11/21/2007 19:24:51
Thanks for all your help, I thought it would be best to get my html validated before I move on to more interesting stuff. I have got the errors down to 7, but am having some trouble with these. Once I have sorted this out can I then apply the colours using CSS? Thanks Pete
|
|
|
|
peterd123
Posts: 24 Joined: 11/16/2007 Status: offline
|
RE: This page is not Valid (no Doctype found)! - 11/22/2007 5:08:40
Here the errors for www.finegbstamps.co.uk Line 21, Column 8: end tag for element "SCRIPT" which is not open. </script> Line 24, Column 20: start tag for "TR" omitted, but its declaration does not permit this. <td width="100%">✉ Line 57, Column 0: unclosed start-tag requires SHORTTAG YES. <p align="center"></a>✉ The construct <foo<bar> is valid in HTML (it is an example of the rather obscure “Shorttags” feature) but its use is not recommended. In most cases, this is a typo that you will want to fix. If you really want to use shorttags, be aware that they are not well implemented by browsers. Line 57, Column 17: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag. <p align="center"></a> Line 63, Column 224: cannot generate system identifier for general entity "img". …EBDA17C1-F28D-41D0-95D1-20262D10FE7F&img=D84B7C56-FEEB-4C8D-B2F7-1DF6598271DC Line 63, Column 224: general entity "img" not defined and no default entity. …EBDA17C1-F28D-41D0-95D1-20262D10FE7F&img=D84B7C56-FEEB-4C8D-B2F7-1DF6598271DC✉ This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details. Line 63, Column 227: reference to entity "img" for which no system identifier could be generated. …A17C1-F28D-41D0-95D1-20262D10FE7F&img=D84B7C56-FEEB-4C8D-B2F7-1DF6598271DC" a✉ This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details. Line 63, Column 223: entity was defined here. …=EBDA17C1-F28D-41D0-95D1-20262D10FE7F&img=D84B7C56-FEEB-4C8D-B2F7-1DF6598271D Line 80, Column 80: document type does not allow element "SCRIPT" here. …com/urchin.js" type="text/javascript">✉ Line 83, Column 9: end tag for "TABLE" omitted, but its declaration does not permit this. </script>✉ You forgot to close a tag, or you used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed. The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag. Line 58, Column 0: start tag was here. <table> I seem to have a lot of errors with line 63 which is an affiliate link for Stanley Gibbons. Thanks for all your help. Any problems with your cars or Pc's, let me know I may be able to help you. Pete Pete
|
|
|
|
peterd123
Posts: 24 Joined: 11/16/2007 Status: offline
|
RE: This page is not Valid (no Doctype found)! - 11/22/2007 6:59:38
My errors seem to have changed, my line 63 is now line 60. Not sure whats wrong with it, they both look the same. Plus there seems to be some others. What would you advise for the styling? do you think that I should start the home page again from scratch then upload it to replace this one? Thanks Pete
|
|
|
|
peterd123
Posts: 24 Joined: 11/16/2007 Status: offline
|
RE: This page is not Valid (no Doctype found)! - 11/22/2007 8:03:11
I'm down to just 2 errors thanks to you. Line 60, Column 224: cannot generate system identifier for general entity "img". …EBDA17C1-F28D-41D0-95D1-20262D10FE7F&img=D84B7C56-FEEB-4C8D-B2F7-1DF6598271DC✉ Line 60, Column 224: general entity "img" not defined and no default entity. …EBDA17C1-F28D-41D0-95D1-20262D10FE7F&img=D84B7C56-FEEB-4C8D-B2F7-1DF6598271DC✉ This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details. Line 60, Column 227: reference to entity "img" for which no system identifier could be generated. …A17C1-F28D-41D0-95D1-20262D10FE7F&img=D84B7C56-FEEB-4C8D-B2F7-1DF6598271DC" a✉ This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details. Line 60, Column 223: entity was defined here. …=EBDA17C1-F28D-41D0-95D1-20262D10FE7F&img=D84B7C56-FEEB-4C8D-B2F7-1DF6598271D Not too sure what to do with this. I will have a look at CSS after this to make the page look better. Hopefully there won't be tooooo many problems. Thanks Pete
|
|
|
|
peterd123
Posts: 24 Joined: 11/16/2007 Status: offline
|
RE: This page is not Valid (no Doctype found)! - 11/22/2007 8:06:08
Sorry forgot to mention that when I copy and pasted the line like you mentioned, it showed up as text in my preview and not the link. Pete
|
|
|
|
peterd123
Posts: 24 Joined: 11/16/2007 Status: offline
|
RE: This page is not Valid (no Doctype found)! - 11/22/2007 13:30:14
Have tried everything you said but cannot get rid of the last two errors. When I try to copy and paste it seems to pick up some code from else where, even though I have only highlighted the line you gave me. Think I may have to live with these two. Or may be do away with that affiliate link altogether. Would like to add some style and colour now, so most probably will end up with loads more errors once I start playing with it. Thanks Pete
|
|
|
|
peterd123
Posts: 24 Joined: 11/16/2007 Status: offline
|
RE: This page is not Valid (no Doctype found)! - 11/22/2007 13:50:03
Ok I managed to copy and paste the link but it still gives the errors. Pete
|
|
|
|
peterd123
Posts: 24 Joined: 11/16/2007 Status: offline
|
RE: This page is not Valid (no Doctype found)! - 11/22/2007 19:01:45
I've had alook at the tutorials you advised about. And am thinking of developing a new site from scratch using CSS and html seperately like the tutorials state. Will I be able to just upload and replace my existing site www.finegbstamps.co.uk or will I have loads of problems? Thanks Pete
|
|
|
|
coreybryant
Posts: 2625 Joined: 3/17/2002 From: Castle Rock CO USA Status: offline
|
RE: This page is not Valid (no Doctype found)! - 11/22/2007 19:18:45
The ampersand usually needs to bbe & a m p ; (just without the spaces - had to add them in there so it would show the way I wanted and not show an ampersand) but I am not sure if you can replace that properly in the URL. Usually you can, but some affiliate software will throw errors.
_____________________________
Corey R. Bryant My Merchant Account Blog | Expression Web Blog
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|