Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 04:13 PM
Meg Singer
Guest
 
Posts: n/a
Default 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?
  #2  
Old July 20th, 2005, 04:13 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: Nested ULs, XHTML 1.0 and Validation errors

midwestmeg@backpacker.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/>
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles