title: Div cannot be nested inside ul and li cannot be nested inside div
body: <p>In the below code i have a div inside a ul tag for making collapasable dropdown.But it throws div cannot be nested inside ul and li cannot be nested inside div.Pls help me to solve the issue.</p>
  <pre class="lang-html prettyprint-override"><code>&lt;li visible=&quot;false&quot; runat=&quot;server&quot; id=&quot;liMasters&quot;&gt;
      &lt;ul&gt;
          &lt;li class=&quot;heading accounts&quot;&gt;
              &lt;asp:Label ID=&quot;lblMasters&quot; Visible=&quot;false&quot; runat=&quot;server&quot;&gt;&lt;/asp:Label&gt;
          &lt;/li&gt;
          &lt;div class=&quot;menu-item&quot;&gt;
              &lt;li&gt;
                  &lt;div class=&quot;nav-item&quot; id=&quot;SalesPrice&quot; visible=&quot;false&quot; runat=&quot;server&quot;&gt;
                      &lt;a href=&quot;/Hoard/SalesPrice.aspx&quot; id=&quot;SalesPriceUL&quot;&gt;
                      &lt;asp:Label ID=&quot;lblSalesPrice&quot; runat=&quot;server&quot;&gt;&lt;/asp:Label&gt;&lt;/a&gt;
                  &lt;/div&gt;
              &lt;/li&gt;
          &lt;/div&gt;
      &lt;/ul&gt;
  &lt;/li&gt;              
  </code></pre>