The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Need direction to find these last errors
Shan
post Apr 8 2007, 10:11 PM
Post #1





Group: Members
Posts: 6
Joined: 8-April 07
Member No.: 2,464



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

.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies(1 - 5)
pandy
post Apr 8 2007, 11:36 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Shan
post Apr 9 2007, 01:27 PM
Post #3





Group: Members
Posts: 6
Joined: 8-April 07
Member No.: 2,464



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!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Shan
post Apr 9 2007, 03:35 PM
Post #4





Group: Members
Posts: 6
Joined: 8-April 07
Member No.: 2,464



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Apr 9 2007, 03:44 PM
Post #5


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Sorry, no idea. I can only see the output and have never used WP.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Shan
post Apr 9 2007, 11:18 PM
Post #6





Group: Members
Posts: 6
Joined: 8-April 07
Member No.: 2,464



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th April 2024 - 06:11 PM