title: Document Type Does Not Allow Element Problems
body: <p>I'm getting 100 errors when validating my site. I don't want to continue the build until I get this worked out. I've gone line-by-line and I'm not understanding why I have these issues. The rough draft start page is at www.flynntec.com. An example error:</p>
  
  <blockquote>
    <p>document type does not allow element "h3" here; assuming missing "li" start-tag [XHTML 1.0 Transitional]</p>
  </blockquote>
  
  <p>or</p>
  
  <blockquote>
    <p>document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag [XHTML 1.0 Transitional]</p>
  </blockquote>
  
  <p>followed by </p>
  
  <blockquote>
    <p>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.</p>
    
    <p>One possible cause for this message is that you have attempted to put a block-level element (such as "&lt;p&gt;" or "&lt;table&gt;") inside an inline element (such as "&lt;a&gt;", "&lt;span&gt;", or "&lt;font&gt;").</p>
  </blockquote>
  
  <p>Sample HTML:</p>
  
  <pre><code>&lt;li class="menu_right"&gt;&lt;a href="#" class="drop"&gt;Access&lt;/a&gt;  
  
    &lt;div class="dropdown_5columns align_right"&gt;
  
          &lt;div class="col_5"&gt;  
            &lt;h2&gt;Microsoft Access&lt;/h2&gt;  
          &lt;/div&gt;  
  
          &lt;div class="col_1"&gt;
          &lt;img src="media/Access Logo.png" width="120" height="118" alt="Microsoft Access" /&gt;
           &lt;/div&gt;  
  
          &lt;div class="col_1"&gt;  
               &lt;ul class="greybox"&gt;&lt;h3&gt;Beginner&lt;/h3&gt;&lt;li&gt;&lt;a href="#"&gt;Welcome to Access&lt;/a&gt;&lt;/li&gt;  
                  &lt;li&gt;&lt;a href="#"&gt;The Power of Access&lt;/a&gt;&lt;/li&gt;  
                  &lt;li&gt;&lt;a href="#"&gt;Intro to Databases&lt;/a&gt;&lt;/li&gt;  
                  &lt;li&gt;&lt;a href="#"&gt;Intro to Tables&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Creating Forms&lt;/a&gt;&lt;/li&gt;  
                  &lt;li&gt;&lt;a href="#"&gt;More...&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/div&gt;
          &lt;div class="col_1"&gt;  
              &lt;ul class="greybox"&gt;&lt;h3&gt;Intermediate&lt;/h3&gt;&lt;li&gt;&lt;a href="#"&gt;Custom Queries&lt;/a&gt;&lt;/li&gt;  
                  &lt;li&gt;&lt;a href="#"&gt;Create Reports&lt;/a&gt;&lt;/li&gt;  
                  &lt;li&gt;&lt;a href="#"&gt;Primary Key Guide&lt;/a&gt;&lt;/li&gt;  
                  &lt;li&gt;&lt;a href="#"&gt;Filtering Quickly&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;More...&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/div&gt;  
  
          &lt;div class="col_1"&gt;  
              &lt;ul class="greybox"&gt;&lt;h3&gt;Advanced&lt;/h3&gt;&lt;li&gt;&lt;a href="#"&gt;Web Integration&lt;/a&gt;&lt;/li&gt;  
                  &lt;li&gt;&lt;a href="#"&gt;Advanced Forms&lt;/a&gt;&lt;/li&gt;  
                  &lt;li&gt;&lt;a href="#"&gt;Using Triggers&lt;/a&gt;&lt;/li&gt;  
                  &lt;li&gt;&lt;a href="#"&gt;Shortcuts&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Expression Builder&lt;/a&gt;&lt;/li&gt;  
                  &lt;li&gt;&lt;a href="#"&gt;More...&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/div&gt;  
  
          &lt;div class="col_5"&gt;  
              &lt;h2&gt;Additional Free Resources&lt;/h2&gt;  
          &lt;/div&gt;  
  
          &lt;div class="col_3"&gt;  
  
              &lt;img src="media/youtube-logo.jpg" alt="YouTube Picture" name="youtube" width="90" height="70" class="img_left imgshadow" id="youtube_logo_2" /&gt;  
              &lt;p&gt;Microsoft Access is an ideal small-business database engine. YouTube is a great source for Access guides. We have compiled the best, most popular Access tutorials from YouTube and put them here for your convenience. &lt;/p&gt;  
  
            &lt;br /&gt;
            &lt;a href="http://office.microsoft.com/en-us/training-FX101782702.aspx" target="_blank"&gt;&lt;img src="media/microsoft-logo__111129012732.jpg" alt="" name="microsoft" width="90" height="24" class="img_left imgshadow" id="microsoft_logo_2" /&gt;&lt;/a&gt;  
              &lt;p&gt;&lt;a href="http://office.microsoft.com/en-us/training-FX101782702.aspx"  title="Microsoft Training" target="_blank"&gt;Microsoft has fantastic resources on their  website. Microsoft Training can be found here.&lt;/a&gt;&lt;/p&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>Yes, there are opening and closing UL's.</p>