Re: Table tag non-validation
by "sfmalo" <sfmalo(at)msn.com>
|
Date: |
Sat, 17 Feb 2001 06:24:35 -0800 |
To: |
"DAKennedy" <taxform(at)ijntb.net> |
Cc: |
<hwg-basics(at)hwg.org> |
References: |
|
|
todo: View
Thread,
Original
|
|
This is for Fuzzy and Tamara too!!!
Ohhhhhhhh. Yes, indeed. Now that I realize from your, Fuzzy's and Tamara's
responses that I was "out of order", it all becomes clear. I was attempting
to nest tables where they did not belong. I was asked to re-do a small site
for a friend that was never coded properly (like bunches of paragraph tags
in the main body of the page but not placed within tables). When I "cold
code" I don't use paragraphs (don't like 'em) but rather tables, trs and tds
using breaks to get more space, when needed. However, I guess I got
distracted and didn't remove all the paragraph tags ... and started nesting
tables, voila!
And thanks to someone's (Tamara, was it you?) suggestion to get HTML Tidy
(really nice editor), everything is cleaned up and W3C-validates ++even in
Netscape 6.01, no less++ except for the top margin/left margin/margin
width/margin height attributes I had to put in to make the main table set
snugly against the edge of the screen. Nuts! Must be some other answer to
that which all browsers would accept! I know, that's been a hot item on the
list for some time. Was it you, Dave, who suggested using <.div
style="margin-top: 0% margin-left: 0%"> before the main table? Haven't tried
that yet. So near, yet so far from validating!
Yes, I'm aware of CSS but it appears that different browsers/versions do/do
not read the same instructions the same way. So, until I'm better acquainted
with CSS (only have a general knowledge of level 1, enough to make a
remote.css file and a few short snippets ...). Anyway, thanks to you all for
your interest and responses. Really appreciated!
Regards,
Sharon (Foggy)
----- Original Message -----
From: "DAKennedy" <taxform(at)ijntb.net>
To: "sfmalo" <sfmalo(at)msn.com>
Sent: Wednesday, February 14, 2001 10:30 PM
Subject: Re: Table tag non-validation
> On or about 09:10 PM 02/14/2001 -0800, sfmalo alleged:
>
> >I've been noticing for some time that, when using the W3C HTML validator
and
> >using an HTML 4.01 trans DTD, I get an error such as seen below. Why
would
> >the validator be looking for the "APPLET", etc. etc. start-tag when it's
a
> >straight run-of-the-mill table (or nested table) that I'm coding? I
thought
> >the 4.01 trans DTD was still accepting the <.table> tag?
> >
> The DTD does accept the TABLE tags, when they are placed correctly. :o)
>
> >Line 21, column 62:
> > <.table width="100%" border="0" cellspacing="0" cellpadding="4">
> > ^
> >Error: document type does not allow element "TABLE" here; missing one of
> >"APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
> >Sharon
> >
> The error says "document type does not allow element TABLE here" so I
> would assume that's exactly what the error is, that you are trying to
place
> your TABLE in an element that is not allowed to contain TABLE tags. The
> "missing one of APPLET, OBJECT, MAP, IFRAME, BUTTON start-tag" part of the
> error tells you what kind of tags the validator expected to find (and are
> allowed) in this particular element. Without viewing your source code
it's
> impossible to be more specific than that. What tags are you trying to
> enclose your TABLE in?
>
> Just as an example, off the top of my head, the <.P> element does not
> allow any content, so you can't legally have a TABLE (or _ANY_ markup)
> enclosed by the <.P><./P> tags. This, of course, isn't the above error
> because plainly whatever you are attempting to enclose your TABLE tags in
> does allow some other tags, but this should give you an idea of what to
> look for.
>
> --
> Regards,
> Dave Kennedy
> Beaumont Texas USA
> ====================
>
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA