Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ Need direction to find these last errors

Posted by: Shan Apr 8 2007, 10:11 PM

I managed to get my page errors down to 10 from over 30, so not too bad for a beginner. I need help knowing what to look for on the last 10. There are really only two different errors, I think, but I can't figure out how to fix them. I THINK I understand the error descriptions, but can't manage to make any changes that fix them. Here is the link to the validator page. Any help would be greatly appreciated. Thanks!

http://xrl.us/vone

.

Posted by: pandy Apr 8 2007, 11:36 PM

QUOTE
Error Line 98, column 9: document type does not allow element "li" here; missing one of "ul", "ol" start-tag

What the validator says. LI can only occur in lists, not on its own.
http://htmlhelp.com/reference/html40/lists/li.html

QUOTE
Error Line 118, column 11: document type does not allow element "h2" here; assuming missing "li" start-tag .

Likewise the only element UL can directly contain is LI. You can't have text or other elements in an UL without wrapping them in a LI.
http://htmlhelp.com/reference/html40/lists/ul.html

QUOTE
Error Line 152, column 10: end tag for "li" omitted, but OMITTAG NO was specified .

QUOTE
Info Line 118, column 8: start tag was here

The validator assumes a start tag for LI on line 118 and thus complains about the missing end tag. Not sure why it does this but correcting all the misplaced LIs and ULs will fix this too. tongue.gif

Why have you sprinkled ULs and LIs all over? Are you trying to create margins, indents? In that case 'margin' (CSS) is a much better choice. smile.gif

Posted by: Shan Apr 9 2007, 01:27 PM

Actually, I am just a beginner at this and did not write this code. It is a WP theme I am using. I have just been told by others to try and validate errors in themes I use before doing anything else as this makes things work better if I later make customizations.

It is a learning process and I sort of understood the error explanations, but not 100%. Your direction "You can't have text or other elements in an UL without wrapping them in a LI." is much more direct and easy to understand than the validators. Thanks!

Posted by: Shan Apr 9 2007, 03:35 PM

I got it down to two last errors that you explained and I understand.

However, I can't find the physical location to fix these errors. They are not in any of the themes php files. The validator explanation seems like it might point to the wp-login file, but I looked in that and all seems fine.

Do you have any ideas where I should look? Or should I just be satisfied with only 2 errors that don't seem to have any adverse effect on the site?

Thanks.

Posted by: pandy Apr 9 2007, 03:44 PM

Sorry, no idea. I can only see the output and have never used WP.

Posted by: Shan Apr 9 2007, 11:18 PM

OK - Thanks for the help on the first post! These last two are WP specific, so I'll leave them for now and revisit them when I get more knowledgeable.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)