I get this error in the w3 validator;

Line 62, column 29: document type does not allow element "A" here (explain...).

<li><a href="#2" class="list">Blah</a></li>

Does anyone know what the problem might be?

The tags around are all opening and closing correctly.

I pressume I'm putting the 'class' element in the wrong place for a list?