Hiya,
I'm altering an existing template for somebody, and I'm having trouble getting it to validate because of the damn tables. I really don't use tables much in favor of a css based layout, so I have very little experience in trying to figure out what the validator is trying to communicate to me. It seems what it tells me contradicts itself! Arggg..
If anyone could provide some insight into this tables mess it would be beyond appreciated.
Thanks!
-Zach
(I've removed some of the superfluous stuff to make it a little simpler)
I'm altering an existing template for somebody, and I'm having trouble getting it to validate because of the damn tables. I really don't use tables much in favor of a css based layout, so I have very little experience in trying to figure out what the validator is trying to communicate to me. It seems what it tells me contradicts itself! Arggg..
If anyone could provide some insight into this tables mess it would be beyond appreciated.
Thanks!
-Zach
(I've removed some of the superfluous stuff to make it a little simpler)
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body >
<div id="mainwrap">
<div id="header">
<div id="headermsg"></div>
<div id="outer">
<ul>
<li>
<span class="xb1">
<a href="express">
<b class="hidden">
DDD
</b></a>
</span>
</li>
<li>
<span class="xb2">
<a href="full">
<b class="hidden">
CCC
</b></a>
</span>
</li>
<li>
<div class="xb3">
<a href="group">
<b class="hidden">
BBB
</b></a>
</div>
</li>
<li>
<div class="xb4">
<a href="past">
<b class="hidden">
AAA
</b></a>
</div>
</li>
</ul>
</div>
<div id="submenu1">
<a href="display/menufilter/madhus" title="menu filter">menu filter</a> </div>
<div id="submenu2">
<a href="account/home/at/madhus" title="my account">my account</a> <a href="services/login/at/madhus" title="log in">log in</a> </div>
</div>
<div id="wrapper">
<!-- Begin page layout table -->
<table id="maintable" border="0" width="100%">
<tr>
<td class="tdHead" colspan="3" valign="top">
<div id="headBoard">
<div id="timeselection">
<a class="novisitedlink" href="">Breakfast (8 am - 10 am)</a>
<a class="novisitedlink activetime" href="">Lunch (11 am - 1 pm)</a>
<a class="novisitedlink" href="">Dinner (5 pm - 10 pm)</a>
</div>
<div id="customizeHeader">
</div>
</div>
</td>
</tr>
<td id="leftCol" valign="top">
<div class="intro2"> </div>
<div id="main">
<div class="description">
<p>
Street Address <input type="text" name="Coupon" value="" style="width: 200px" /> <br />
City <input type="text" name="Coupon" value="" style="width: 260px" /> <br />
State <input type="text" name="Coupon" value="" style="width: 124px" />
Zip <input type="text" name="Coupon" value="" style="width: 100px" />
</p>
<p style="background-color: #f8e081;">
<i>optional</i> <br />
<textarea name="comments" cols="20" rows="7" style="float:right; margin-right: 20px;"></textarea>Landmarks,
cross streets,
Special instructions
<br /><br /><br /><br /><br /><br />
Company <input type="text" name="Coupon" value="" style="width: 235px;" /> <br />
Suite <input type="text" name="Coupon" value="" size="13" />
Floor <input type="text" name="Coupon" value="" size="13" /> <br />
<input type="checkbox" name="Leave with doorman" /> Please leave with doorman if not home <br />
<input type="checkbox" name="Call Before Delivery" /> No phone/intercom, please call before
delivery
</p>
<a href="#">delete</a>
</div>
</div>
<div class="customize2">
<a href="#">
New Address
</a>
</div>
<a href="#">
<b class="basketitem">
</b>
</a>
</div>
</td>
<td id="centerCol" valign="top"> <!-- Center Column -->
<div class="intro2"> </div>
<div id="main2">
<div class="description">
<p>
Street Address <input type="text" name="Coupon" value="" style="width: 200px" /> <br />
City <input type="text" name="Coupon" value="" style="width: 260px" /> <br />
State <input type="text" name="Coupon" value="" style="width: 124px" />
Zip <input type="text" name="Coupon" value="" style="width: 100px" />
</p>
<p style="background-color: #f8e081;">
<i>optional</i> <br />
<textarea name="comments" cols="20" rows="7" style="float:right; margin-right: 20px;">
</textarea>
Landmarks,
cross streets,
Special instructions<br /><br /><br /><br /><br /><br />
Company <input type="text" name="Coupon" value="" style="width: 235px;" /> <br />
Suite <input type="text" name="Coupon" value="" size="13" />
Floor <input type="text" name="Coupon" value="" size="13" /> <br />
<input type="checkbox" name="Leave with doorman" /> Please leave with doorman if not home <br />
<input type="checkbox" name="Call Before Delivery" /> No phone/intercom, please call before
delivery
</p>
<a href="#">delete</a>
</div>
</div>
<div class="customize">
<a href="#">
Save Changes
</a>
</div>
<a href="#">
<b class="basketactionbuttons"></b>
</a>
</td>
</table>
</div>
<!-- end page layout table -->
<div id="footer">
<p>
<a href="display/contact/madhus" class="novisitedlink">Contact Us</a> | <a href="display/printmenu/madhus" class="novisitedlink">Print Menu</a> | <a href="display/faq/madhus" class="novisitedlink">FAQ</a> </p>
</div>
</body>
</html>