Jump to content

Recommended Posts

Posted

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?

Posted

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?

Posted (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 by MacRankin
Posted

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.

Posted

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

Posted

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

Posted

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.

Posted

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.

Posted (edited)

The validator isn't liking that you have two ID with similar names, I think.

 

 

Edited by Susie
Posted

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...