Forums

Help for last 9 errors to validate page, Please. (7 posts)

  1. Mezloh
    Member
    Posted 4 years ago #

    I am trying to get my index page to validate and i'm down to 9 errors.
    Here is my Blog

    I think I have an idea but i am not positive how to fix it, would appreciate someone with more experience and a new set of eyes to give a look so I get it right the first time.

    http://validator.w3.org/check?uri=http://www.knockoutodors.com/

  2. whooami
    Member
    Posted 4 years ago #

    the first error:

    look at what you have:

    <ul>
    <form method="get" id="searchform" action="/index.php">
    <input type="text" value="" name="s" id="s" /><input type="submit" id="sidebarsubmit" value="Search" />
    </form>
     </ul>

    thats a form inside an unordered list, but you dont have any list item tags.

    you need this:

    <ul>
       <li>
          <form>
          </form>
       </li>
    </ul>

    you cant have uls without lis

    the second error:

    you have:

    <a href="http://contentdesk.com/cmd.php?Clk=1983027"><img src="http://authorityblackbook.com/authority_blackbook3.gif" alt="Authority Black Book" width="125" height="125" border="0"</a>

    the <img> is unclosed. they are self closing in XHTML.

    you want this:

    <a href="http://contentdesk.com/cmd.php?Clk=1983027"><img src="http://authorityblackbook.com/authority_blackbook3.gif" alt="Authority Black Book" width="125" height="125" border="0" /></a>

    the 3rd error is the same as the second one. you didnt close the <img> tag

    the 4th error is that you didnt include an alt="something with the image used in error #3.

    --

    The uploaded document "www.knockoutodors.com.htm" was checked and found to be valid XHTML 1.0 Transitional. blah blah blah.

    --

    Take my information, read it, fix one item at a time, and then revalidate. Fix the next error, revalidate. Next error, revalidate. Next error, revalidate.

    And thank you for turning off the popup. It's appreciated. :)

  3. Mezloh
    Member
    Posted 4 years ago #

    I figured as much about the ul and li tags i just wanted someone to confirm that for me. I think that was a mistake from the theme developer.

    Well, My site passes now, thank you for confirming the ul and li tags. However, I changed them just like you suggested and went from 2 errors back up to 10 errors when i revalidated.

    Do the
    <li> and </li>
    tags have to be indented just like this or does it just have to be on the next line?

    <ul>
    <li>
          <form>
          </form>
       </li>
    </ul>

    I just removed the search widget and now it is perfect.
    I don't have all my articles from my previous blog posted yet so once i get my 50 or so articles I wrote on this one then the search form will be useful.

    Thank you for all of your help Whooami!!! Notice I spelled it right this time. Now i can finally go to bed and get a good nights sleep.

    Thanks

  4. whooami
    Member
    Posted 4 years ago #

    no, nothing has to be indented -- i did that so that you could see the format better.

  5. Mezloh
    Member
    Posted 4 years ago #

    Whooami,

    I indented the
    <li> tags and reloaded the search widget and it validates good now.

    Question for you though. If you look at whre you saw that error. Under the closing tag there is a </li>
    tag. It doesn't look like it is supposed to be there. Am I right about this or am I missing something.

    thanks

    [mod: corrected the code to be visible]

  6. whooami
    Member
    Posted 4 years ago #

    i dont know what you are talking about. read your post, how can I possibly understand your question. you cant just write HTML in these forums and have it show up, so if you dont know what a backtick is, then dont put < and > around stuff.

  7. Mezloh
    Member
    Posted 4 years ago #

    Sorry about that, It was very late and i was tired and i just typed quick and posted, my bad.
    Anyway, I got the search form to validate per your suggestion.
    One thing I did have a question about though is that i think there was an extra closing li tag below the closing ul tag left by the theme developer. If you have a sec, could you check that out and let me know if this is correct.

    I was just reading my last post and its kind of funny to read. Again thanks for your guidance.

Topic Closed

This topic has been closed to new replies.

About this Topic