Arwen
11-28-2006, 05:52 PM
Alright, forget that. I have another problem, it won't validate my image map. It says:
# Error Line 28 column 23: document type does not allow element "MAP" here; missing one of "TH", "TD" start-tag.
<map name="main_02_Map">
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>").
# Error Line 34 column 19: document type does not allow element "MAP" here; missing one of "TH", "TD" start-tag.
<map name="img_Map">
And here's my code:
<table id="main_table" cellspacing="0" cellpadding="0">
<tr>
<td width="750" colspan="5"><img src="images/main_01.jpg" width="750" height="105" alt=""></td>
</tr>
<tr>
<td width="750" colspan="5"><img src="images/main_02.jpg" width="750" height="106" border="0" alt="" usemap="#main_02_Map"></td>
<map name="main_02_Map">
<area shape="rect" alt="" coords="405,34,725,81" href="index.php">
</map>
</tr>
<tr>
<td width="750" colspan="5"><img src="images/main_03.jpg" width="750" height="105" border="0" alt="" usemap="#img_Map"></td>
<map name="img_Map">
<area shape="rect" alt="" coords="591,75,713,99" href="tutorials.php">
<area shape="rect" alt="" coords="493,75,566,98" href="fonts.php">
<area shape="rect" alt="" coords="348,75,467,103" href="graphics.php">
<area shape="rect" alt="" coords="271,75,324,99" href="site.php">
</map>
</tr>
Sorry, Josh, I know it's HTML, but I thought I'd post it here since it's regarding W3C Validator, but you can move the post if you wish. :)
# Error Line 28 column 23: document type does not allow element "MAP" here; missing one of "TH", "TD" start-tag.
<map name="main_02_Map">
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>").
# Error Line 34 column 19: document type does not allow element "MAP" here; missing one of "TH", "TD" start-tag.
<map name="img_Map">
And here's my code:
<table id="main_table" cellspacing="0" cellpadding="0">
<tr>
<td width="750" colspan="5"><img src="images/main_01.jpg" width="750" height="105" alt=""></td>
</tr>
<tr>
<td width="750" colspan="5"><img src="images/main_02.jpg" width="750" height="106" border="0" alt="" usemap="#main_02_Map"></td>
<map name="main_02_Map">
<area shape="rect" alt="" coords="405,34,725,81" href="index.php">
</map>
</tr>
<tr>
<td width="750" colspan="5"><img src="images/main_03.jpg" width="750" height="105" border="0" alt="" usemap="#img_Map"></td>
<map name="img_Map">
<area shape="rect" alt="" coords="591,75,713,99" href="tutorials.php">
<area shape="rect" alt="" coords="493,75,566,98" href="fonts.php">
<area shape="rect" alt="" coords="348,75,467,103" href="graphics.php">
<area shape="rect" alt="" coords="271,75,324,99" href="site.php">
</map>
</tr>
Sorry, Josh, I know it's HTML, but I thought I'd post it here since it's regarding W3C Validator, but you can move the post if you wish. :)