Graeme Posted February 27, 2009 Report Share Posted February 27, 2009 Hello All, Can anyone please tell me what this message means on validating Line 1, Column 15: cannot continue because of previous errors. color=red]p[/color]ublic "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x? Line 1, Column 15: XML Parsing Error: DOCTYPE improperly terminated. color=red]p[/color]ublic "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x? Line 1, Column 16: XML Parsing Error: Start tag expected, '<' not found. color=red]u[/color]pblic "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x? Quote Link to comment Share on other sites More sharing options...
MacRankin Posted February 27, 2009 Report Share Posted February 27, 2009 These are from separate documents, yes? Well, anyway, this is what your doctype should look like, or one of them anyhow... /p> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> A little while ago I was even manually typing in the doctype, but because of one error that I kept making I thought it best to let BBEdit generate that part of the document itself. Are you hand-coding in this as well? Quote Link to comment Share on other sites More sharing options...
Graeme Posted February 27, 2009 Author Report Share Posted February 27, 2009 Thank you for the help. Should I change my Doctype to /p> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> on all pages? best wishes Graeme Quote Link to comment Share on other sites More sharing options...
Andrea Posted February 27, 2009 Report Share Posted February 27, 2009 Actually, HTML strict would be the proper choice - for all your pages: http://www.killersites.com/forums/topic/62/html-or-xhtml-updated-30-july-06/ Quote Link to comment Share on other sites More sharing options...
MacRankin Posted February 27, 2009 Report Share Posted February 27, 2009 (edited) Well, to be honest, I'm in two minds, especially when it comes to learning other things like flash, php, or jquery. For some reason those folks will always start you off with an xhtml doctype, whereas I would normally only go html strict. Erm, anyway, here are a few of the doctypes with there utf-8 meta tags... HTML 4.01 Strict /p> "http://www.w3.org/TR/html4/strict.dtd"> XHTML 1.0 Transitional /p> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> XHTML 1.0 Strict /p> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> It's always best to include that charset utf-8 thingy. I think without it, people might end up seeing unusual looking characters. LSW, including Thelma and myself will always advocate the use of HTML 4.01 Strict. Using XHTML doesn't really do anything extra to your code. Well, I don't think so anyway. I mean, you can still incorporate flash, wordpress, jquery, and all the rest of it -- can't you? Edited February 27, 2009 by MacRankin Quote Link to comment Share on other sites More sharing options...
LSW Posted February 27, 2009 Report Share Posted February 27, 2009 I think they do that for two reasons... errr 3... They were taught to use XHTML and are to lazy to change... They do not understand the issues and think it is the "in" thing... Or just to lazy to change the editors default use of XHTML DOCTYPE. When editoprs stop defaulting to that than we can get people to quit using it for no reason. Quote Link to comment Share on other sites More sharing options...
Graeme Posted March 1, 2009 Author Report Share Posted March 1, 2009 Hello All, Thanks for all your help with this. I used the HTML 4.01 Strict. I still get a few errors mainly with and nationally" />? The sequence can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/' terminates the tag '). Thank you Best wishes Graeme Quote Link to comment Share on other sites More sharing options...
newseed Posted March 1, 2009 Report Share Posted March 1, 2009 and nationally" /> Remove the forward closing slash and the space. and nationally"> Quote Link to comment Share on other sites More sharing options...
Graeme Posted March 1, 2009 Author Report Share Posted March 1, 2009 Thank you for that. Wherwe did the space /> come from? Is it another version? I now get ID "MENU-04" already defined. Contact Us and there is no attribute "BORDER". ? alt="" width="420" height="315" border="0"> Thank you Best wishes Graeme Quote Link to comment Share on other sites More sharing options...
MacRankin Posted March 1, 2009 Report Share Posted March 1, 2009 It might be a better idea to show us a link, or provide us with more mark-up and code, as I can't really tell what's already have been defined... Erm, the border attribute has been deprecated, so you will need to add a bit of css for that... img { border: 0px none; } You should start getting into the habit of not relying on certain html attributes. Try googling for a list of deprecated attributes. You should also get into the habit of only using lower-case letters for everything but the actual doctype. Quote Link to comment Share on other sites More sharing options...
Graeme Posted March 1, 2009 Author Report Share Posted March 1, 2009 Thank you, I understand everything you said. It's great to learn so much. www.greenhouseflorists.co.uk hope I'm not being a pest. best wishes Graeme Quote Link to comment Share on other sites More sharing options...
MacRankin Posted March 1, 2009 Report Share Posted March 1, 2009 You're not being a pest, right. I'm only glad I can help with answering these questions. Looks like you've got id="menu-4" down twice. Maybe that's why it's not validating as expected? Btw, I like the colors you have employed on the site. I'm never good with things like that. Quote Link to comment Share on other sites More sharing options...
Susie Posted March 1, 2009 Report Share Posted March 1, 2009 (edited) The validator isn't liking that you have two ID with similar names, I think. Order Flowers Online Weddings Corporate Sympathy Contact Us How To Find Us and perhaps? Personally, I would rename the div to something more meaningful...maybe . And I don't know why you need the ID's on those li's. I would first take those ID's off and see if that doesn't help matters. And you have a leftover border="0" on one of your images. Taking care of those should fix your HTML validation issues. For your CSS error, I would see if removing border-top:none; from #content fixes it. Either remove that line altogether or put 0 instead of none. And finally, I'm not sure if all those spaces in your CSS would cause issues or not, but you might want to get into the practice of writing things like this (float: right;) instead of this (float : right;) Oh, one more thing...I would also get into the habit of using all lower case in your HTML. You have a lot of instead of . Edited March 1, 2009 by Susie Quote Link to comment Share on other sites More sharing options...
Graeme Posted March 3, 2009 Author Report Share Posted March 3, 2009 Thank you MacRankin & Susie, Great help, I understand it all. The colours were from the lady who owns the shop. The Olive colour is the colour the shop is painted. I visited a paint company web site, searhced for 'Overtly Olive' and used a colour icker to get the right #hex code. Thanks again, Best wishes Graeme Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.