Forum Moderators: open

Message Too Old, No Replies

question on validation

block level element, please clarify

         

amythepoet

6:47 pm on Jan 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



HI,

Im trying to validate a page and got this error

<ul>

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

encyclo

6:30 pm on Jan 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When you get such as error, you need to look at what is happening before the tag in question - it usually means that an earlier element is not closed. It could be a paragraph, a table...