title: html validation fail
body: <p>For a piece of homework, I cannot get this site to validate and I am not sure why? Here is the html:</p>
  
  <pre><code>    &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
      &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
  
      &lt;html&gt;
      &lt;head&gt;
      &lt;!--I am using TextWrangler to do my html css editing on my Mac--&gt;
      &lt;meta http-equiv="Content-Type" content="text/html;charset=utf-8"&gt;
      &lt;link rel="stylesheet" type="text/css" href="style.css" /&gt;
      &lt;title&gt;
      KG Doors
      &lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
  &lt;div class="wrapper"&gt;  
  
  &lt;div class="masthead"&gt;
      &lt;a href="http://www.notimefortime.com/index.thml"&gt;&lt;img src="logo.jpeg"  alt="kgdoors" height="150"width="304"&gt; &lt;/a&gt;
  &lt;/div&gt;&lt;!--end the masthead div --&gt;
  &lt;div id="nav-wrapper"&gt;
      &lt;ul id="nav"&gt;
          &lt;li&gt;&lt;a href="index.html"&gt;Home&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="about.html"&gt;Services&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="contact.html"&gt;Contact&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;&lt;--end nav wrappe--&gt;
  &lt;div class="body"&gt;
      &lt;h1&gt;Proudly Serving Chicago and Suburbs&lt;/h1&gt;
  
  &lt;/div&gt;&lt;!--end the body div --&gt;
  &lt;div class="footer"&gt;
      &lt;h4&gt;
          &lt;br/&gt;Educational site for DePaul University. 
          &lt;br/&gt;&lt;a href="http://www.kgdoors.com/"&gt;KG Doors&lt;/a&gt;
      &lt;/h4&gt;
  &lt;/div&gt;&lt;!--end the footer div --&gt;
  
  &lt;/div&gt;&lt;!--end the wrapper div --&gt;
  
      &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>Validation Output: 6 Errors</p>
  
  <p>Line 4, Column 6: document type does not allow element "html" here
  
  ✉
  The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).</p>
  
  <p>One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).</p>
  
  <p>Line 4, Column 1: Missing xmlns attribute for element html. The value should be: <a href="http://www.w3.org/1999/xhtml" rel="nofollow">http://www.w3.org/1999/xhtml</a>
  
  ✉
  Many Document Types based on XML need a mandatory xmlns attribute on the root element. For example, the root element for XHTML might look like:
  </p>
  
  <p>Line 7, Column 68: end tag for "meta" omitted, but OMITTAG NO was specified
      
  ✉
  You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".</p>
  
  <p>Line 7, Column 2: start tag was here
      
   Line 17, Column 114: end tag for "img" omitted, but OMITTAG NO was specified
  …om/index.thml"> 
  ✉
  You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".</p>
  
  <p>Line 17, Column 55: start tag was here
  …p://www.notimefortime.com/index.thml">&lt;--end nav wrappe-->
  ✉
  This message may appear in several cases:</p>
  
  <p>You tried to include the "&lt;" character in your page: you should escape it as "&lt;"
  You used an unescaped ampersand "&amp;": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
  Another possibility is that you forgot to close quotes in a previous tag.
   Line 40, Column 8: "html" not finished but document ended
  
  ✉
   Line 40, Column 8: end tag for "html" omitted, but OMITTAG NO was specified
  
  ✉
  You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".</p>
  
  <p>Line 2, Column 1: start tag was here
  </p>