Nested ULs, XHTML 1.0 and Validation errors

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Meg Singer

    Nested ULs, XHTML 1.0 and Validation errors

    Here's the deal. I am trying to get a page to validate
    (http://www2.evansville.edu/libweb/ir...s/biology.html) and
    the w3c validator does not like my nested ULs.

    I've put <li></li> tags around all text that appears within the ULs
    but this hasn't made any difference.

    Any ideas?
  • Steve Pugh

    #2
    Re: Nested ULs, XHTML 1.0 and Validation errors

    midwestmeg@back packer.com (Meg Singer) wrote:
    [color=blue]
    >Here's the deal. I am trying to get a page to validate
    >(http://www2.evansville.edu/libweb/ir...s/biology.html) and
    >the w3c validator does not like my nested ULs.[/color]

    I can guess what the problem is...

    Yep, the only elements that can go inside <ul> is <li>.
    If you want to nest <ul>s you need to place the inner <ul> inside an
    <li>.

    i.e.
    <ul>
    <li>
    <ul>....</ul>
    </li>
    </ul>

    Steve

    --
    "My theories appal you, my heresies outrage you,
    I never answer letters and you don't like my tie." - The Doctor

    Steve Pugh <steve@pugh.net > <http://steve.pugh.net/>

    Comment

    Working...