how to minimise this errors and warnings??

Started by johnpaul2k2, October 17, 2012, 08:31:48 AM

Previous topic - Next topic

johnpaul2k2

Quote from: Labradoodle-360 on November 14, 2012, 05:46:27 PM
Unfortunately, I do not have the time to do it for you. I said I can't help you too much more without just doing it myself, but that doesn't insinuate that I can or will.
No problem
Quote from: MrPhil on November 14, 2012, 03:39:46 PM
You don't want to go wildly deleting tags that it has flagged. You need to understand what it is complaining about, and then the flagged tag may be perfectly good. The actual problem may lie "upstream" in another (hopefully flagged) error. YOU have to understand what proper HTML is, and figure which of the reported errors are legitimate.

The W3C validator seems to suffer from poor "error recovery" (in compiler terms). I remember 20 to 25 years ago, C compilers would get lost at the first error, and produce a cascade of bogus errors until they hit some predefined limit. Compiler theory has advanced considerably since then, allowing some degree of recovery from legitimate errors so that there are rarely cascades. Maybe some day the W3C will apply some recent compiler design theory to their validator.
please can you help me out MrPhil? maybe i will send you the details please

MrPhil

Sorry, I don't have the time available to take the list of errors and trace it back to your particular PHP code changes. Hint: usually the first error in a list is a "real" error, so fix that and validate again. You need to have a decent understanding of HTML to see what the validator is complaining about -- sometimes the problem can be very subtle. Don't worry about errors like "missing alt attribute" -- you can live without fixing those, or at least, hold off until later. You want to fix things like unrecognized tags first. Things like unclosed tags should then be dealt with (e.g., your doctype model is XHTML and you have a tag <img .....> you want to change it to <img ..... />).

Matthew K.

Also...please don't PM me asking for help. I already told you that I do not have the time.

johnpaul2k2

Quote from: Labradoodle-360 on November 15, 2012, 09:38:53 AM
Also...please don't PM me asking for help. I already told you that I do not have the time.
sorry about that,
Quote from: MrPhil on November 15, 2012, 09:34:03 AM
Sorry, I don't have the time available to take the list of errors and trace it back to your particular PHP code changes. Hint: usually the first error in a list is a "real" error, so fix that and validate again. You need to have a decent understanding of HTML to see what the validator is complaining about -- sometimes the problem can be very subtle. Don't worry about errors like "missing alt attribute" -- you can live without fixing those, or at least, hold off until later. You want to fix things like unrecognized tags first. Things like unclosed tags should then be dealt with (e.g., your doctype model is XHTML and you have a tag <img .....> you want to change it to <img ..... />).
thanks alot. i will do as you said

Advertisement: