Forum Moderators: open

Message Too Old, No Replies

why won't this validate?

xhtml strict problems

         

soniclnd

6:14 pm on Aug 13, 2005 (gmt 0)

10+ Year Member



I'm having problems with the following code, it does not validate.
do any of you have any idea why?


<!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" lang="en" xml:lang="en">
<head>

<title>title</title>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<link rel="stylesheet" href="styles.css" type="text/css" />

<link rel="shortcut icon" href="favicon.ico" />

</head>
<body>

<div class="container text-center">

<!-- //////////// start main holder //////////// -->

<div id="mainholder">

<!-- //////////// start top //////////// -->
<div id="maintop">

<table class="fcontentt" cellpadding="0" cellspacing="0">
<tr>
<td id="tl" valign="top">

<!-- ////////////////////// start header left ////////////////////// -->

<div id="headertl">

<div class="sitetitle"><a href="#">Site</a></div>
<div class="headertxt">
description</div>

</div>

</div>

<!-- ////////////////////// end header left ////////////////////// -->

</td>

<td id="tr" valign="top">

<!-- ////////////////////// start mini header right ////////////////////// -->

<div id="mheadertr">

<span style="font-size: 10px;">date</span>
</div>

<!-- ////////////////////// end mini header right ////////////////////// -->

</td>
</tr>
</table>

</div>
<!-- /////// end top /////// -->

<!-- /////// start center /////// -->

<div id="maincenter">

<table class="fcontentt" cellpadding="0" cellspacing="0">
<tr>
<td id="cl" valign="top">

<!-- ////////////////////// start main nav ////////////////////// -->

<div id="mainnav">

navigation

</div>

<!-- ////////////////////// end main nav ////////////////////// -->

</td>
<td id="cc" valign="top">

<!-- ////////////////////// start main content ////////////////////// -->

<div id="maincontent">

content

<br /><br />
</div>

<!-- ////////////////////// end main content ////////////////////// -->

</td>
<td id="cr" valign="top">

<!-- ////////////////////// start right ////////////////////// -->

<div id="right">

right

</div>

<!-- ////////////////////// end right ////////////////////// -->

</td>
</tr>
</table>

</div>

<!-- /////// end center /////// -->

<!-- /////// start bottom /////// -->

<div id="mainbottom">

<table class="fcontentt" cellpadding="0" cellspacing="0">
<tr>
<td id="bl" valign="top">

<!-- /////// start bottom left /////// -->

<div id="bottoml">

<div class="text-center">
stuff
</div>

</div>

<!-- /////// end bottom left /////// -->

</td>

<td id="bc" valign="top">

<!-- ////////////////////// start bottom center ////////////////////// -->

<div id="bottomc">

<div style="font-size: 10px; text-align: center;">
©
</div>

</div>

<!-- ////////////////////// end bottom center ////////////////////// -->

</td>
<td id="br" valign="top">

<!-- /////// start bottom right /////// -->

<div id="bottomr">

</div>

<!-- /////// end bottom right /////// -->

</td>
</tr>
</table>

</div>

<!-- /////// end bottom /////// -->

</div>

<!-- /////// end main holder /////// -->

</div>

</body>
</html>

rjohara

6:20 pm on Aug 13, 2005 (gmt 0)

10+ Year Member



What error message do you get from the validator?

encyclo

6:22 pm on Aug 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The problem is here:

<!-- ////////////////////// start header left ////////////////////// -->

<div id="headertl">

<div class="sitetitle"><a href="#">Site</a></div>
<div class="headertxt">
description</div>

</div>

[b]</div>[/b]

<!-- ////////////////////// end header left ////////////////////// -->

You have one extra closing

</div>
- and the rest of the errors cascade from that. The W3C validator correctly identified the problematic element on line 39 of your markup. :)

soniclnd

8:32 pm on Aug 13, 2005 (gmt 0)

10+ Year Member



oh, ok, thanks a lot man.......