Forum Moderators: open

Message Too Old, No Replies

Style In A List

         

Fruit and Veg

3:21 pm on Oct 13, 2003 (gmt 0)

10+ Year Member



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 is?

Nick_W

3:23 pm on Oct 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



At a guess, I'd say it was somthing else. Perhaps you didn't open a <ul> or <ol>? - an nuclosed tag above it perhaps....

Looks okay as it is, so that can't be it ;)

Nick

BlobFisk

3:23 pm on Oct 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try using an alpha character instead of a numeric one and see if the error persists...

buckworks

3:33 pm on Oct 13, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



If the original code you validated had elements in upper case that might be what triggered it. Some doctypes validate when things are in lower case but not upper case.

Fruit and Veg

3:36 pm on Oct 13, 2003 (gmt 0)

10+ Year Member



So the 'class' element within the link, which is within the <li></li> is OK?

I thought that would be the problem.

Tha tags around are all opening and closing correctly.

Thanks.