- From: Eric <e.richards@clear.net.nz>
- Date: Fri, 22 Jun 2001 23:44:03 +1200
- To: <www-html@w3.org>
- Message-ID: <005301c0fb11$3010d840$0300a8c0@686>
this error came up from
http://www.w3schools.com/site/site_validate.asp
that checks using
http://validator.w3.org/
Line 2407, column 21:
"images/blacksq.gif"> comes up
^
and this is the faulty line
[2407]<img alt="the picture" src="images/blacksq.gif"> comes up
and then gives this message
Error: element "IMG" not allowed here; check which elements this element may be contained within (explanation...)
clicking onto explanation gives
"document type does not allow element "FOO" here"
Straightforward, but not terribly informative. There are a lot of different errors that will generate this error message:
a.. Using an unknown tag. In this case, the next error will be "element `FOO' undefined".
b.. Using a tag in the wrong place. For instance, <TABLE><TD>blah</TABLE> will cause this error. The trick here is that <TABLE> cannot directly contain <TD>'s; it contains <TR>'s which contain <TD>'s. The above example should be <TABLE><TR><TD>blah</TABLE>.
c..
------------------------------------------------------------------------------
were does "FOO" come into it?
more important TABLES the wrong code is not used in tables.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.262 / Virus Database: 132 - Release Date: 12-Jun-01
Received on Friday, 22 June 2001 07:49:25 UTC