Hi,
Just wondering if anyone can help, I'm stuck on an assignment. I have created a website and when I validate I'm still getting 2 errors, which from Googling seem quite common. I've tried a few different things but the errors are still there.
The webpage has to be created solely in HTML and the webpage has to be created as a table...25% nav bar and 75% rest of webpage. The webpage is working fine, it just won't validate.
Here are the errors:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Produce</title>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<meta name="description" content="Joe's fruit and vegetables online">
<meta name="keywords" content="Joe's, fruit, vegetable, online">
</head>
<body bgcolor="#99FF99">
<font face="Verdana, Arial, Helvetica, Sans">
<font color="#66FF00">
<H1 align="center">All produce at Joe's</H1>
</font>
<br>
<br>
<table border="0" width="100%">
<tr>
<td valign="top" width="25%">
<a href="index.htm"target="_blank"><IMG SRC="carrothome.JPG"alt="Home"height="100" width="100"> </a>
<br>
<br>
<br>
<a href="produce.htm"target="_blank"><IMG SRC="carrotproduce.JPG"alt="Produce"height="100" width="100"> </a>
<br>
<br>
<br>
<a href="history.htm"target="_blank"><IMG SRC="carrothistory.JPG"alt="History"height="100" width="100"></a>
<br>
<br>
<br>
</td>
<td valign="top" width="75%">
<h4 align="center">Benefits of shopping at Joe's online:</h4>
<ul>
<li>It's convenient because the website is available 24 hours per day</li>
<li>You don't have to leave home to have the best produce available</li>
<li>Your phone call to order produce is free</li>
</ul>
<br>
<hr>
<br>
<center>
<table border="2">
<tr>
<th>Item</th>
<th>Price</th>
</tr>
<tr>
<td>Alfalfa sprouts</td>
<td>$1.50 per punnet
</td>
</tr>
<tr>
<td>Apples, Bonza</td>
<td>$5.99 per kg </td>
</tr>
<tr>
<td>Apples Golden Delicious</td>
<td>$4.99 per kg</td>
</tr>
<tr>
<td>Artichoke hearts, pickled</td>
<td>$17.99 per kg</td>
</tr>
<tr>
<td>Avocados, dark, large</td>
<td>2 for $3.50</td>
</tr>
</table>
<br/>
<a href="mailto:info@joes.com.au?subject=More Information">info@joes.com.au</a>
<br/>
<br/>
<img src="map1.JPG" width="500" height="90" alt="imagemap" usemap="#map1">
<map name="map1">
<area shape="rect" coords="20,31,140,53" href="index.htm" target="_blank" alt="Home">
<area shape="rect" coords="178,30,301,52" href="produce.htm" target="_blank" alt="Produce">
<area shape="rect" coords="335,30,456,51" href="history.htm" target="_blank" alt="History">
</map>
</center>
</table>
</font>
</body>
</html>
Validation Output: 2 Errors
Line 19, Column 19: document type does not allow element "H1" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
<H1 align="center">All produce at Joe's</H1>✉
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>").
Line 24, Column 31: document type does not allow element "TABLE" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
<table border="0" width="100%"> ✉
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>").
Thanks in advance
Simon