Forum Moderators: open

Message Too Old, No Replies

'Pre' validation error

         

missashlay

9:56 pm on Nov 29, 2008 (gmt 0)

10+ Year Member



I use code and pre to show coding on my pages (instead of textarea) and when I tried to validate my page that use pre, and error shows up.

Line 74, Column 4: document type does not allow element "pre" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.

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>").

surrealillusions

10:02 pm on Nov 30, 2008 (gmt 0)

10+ Year Member



Use the helpful messages and look through your code to see if you have made a mistake thats mentioned in the error.

If you cant, then post up your code where your getting the error, and we can point you in the direction.

:)

tedster

11:10 pm on Nov 30, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



An error message like this can be triggered by a problem earlier in the mark-up - like a tag that should have been closed but isn't due to a typo or whatever.