kengr: (Brain)
[personal profile] kengr
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?

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

[sometag] [table] ...

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

Date: 2004-05-20 09:32 am (UTC)
From: [identity profile] farquhar.livejournal.com
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.

Date: 2004-05-20 09:41 am (UTC)
From: [identity profile] farquhar.livejournal.com
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.

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

April 2026

S M T W T F S
   1 23 4
567891011
121314151617 18
19202122232425
2627282930  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 17th, 2026 06:47 pm
Powered by Dreamwidth Studios