PDA

View Full Version : List not validating!



scrimshawcomm
April 21st, 2009, 07:15 AM
Hi,

In my quest to cure myself of divitis I have been trying to use other methods to layout my pages.

Here is a snippet of a small two column menu. When i try and validate it as HTML 4.0 it says that I cannot have the <li> elements where I do?

Any help

http://www.scrimshawcomm.info/t.html

samoscratch
April 25th, 2009, 11:03 PM
span is an inline element, whereas li is a block-level element, I think that's the problem

Jeff Wheeler
April 26th, 2009, 12:07 AM
Indeed, and the <ul> may only have <li>s as direct children.

Oh, and the class="ul" bit is very silly. Just match the element itself, rather than the class name.