Jump to content

Validation


Graeme

Recommended Posts

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

 

 

Edited by Susie
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...