kengr: (Brain)
kengr ([personal profile] kengr) wrote2004-05-19 11:04 pm

HTML help requested

I'm using the validator at w3.org to check my web pages. It's caught some stuff, but there's one "error" that I'm tearing my hair over.

It doesn't like the table tag. The specific error it's giving is:

document type does not allow element "TABLE" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag

Anybody want to explain what the hell they are talking about?

[identity profile] farquhar.livejournal.com 2004-05-20 08:30 am (UTC)(link)
generally it means thatthe tag in which the table tag is contained in can't have a table in it.

[sometag] [table] ...

[identity profile] farquhar.livejournal.com 2004-05-20 08:33 am (UTC)(link)
the parse tree helps to see the container relationship and the dtd is sometimes clearer in showing containment rules.

[identity profile] farquhar.livejournal.com 2004-05-20 09:32 am (UTC)(link)
A parse tree shows the structure of your page as parsed by the validator. The validator has an extended interface that shows the parse tree. Example output based on my site.

[identity profile] farquhar.livejournal.com 2004-05-20 09:41 am (UTC)(link)
I don't think a font tag can hold a table tag legally. IE and many user agents will vender the results but it isn't good HTML grammar.

But the answer is: a font can't hold a table. under the rules. the latest "rules" say front is old don't use it anymore, use styles instead.

[identity profile] farquhar.livejournal.com 2004-05-20 11:03 am (UTC)(link)
Try HTML Tidy it can do much cleanup safely.