Note that there are some explanatory texts on larger screens.

plurals
  1. POerror in validating : document type does not allow element "h4" here; assuming missing "li" start-tag
    text
    copied!<p>I'm getting the following error while validating my website:</p> <p>document type does not allow element X here; assuming missing Y start-tag ✉ Line 65, column 17: document type does not allow element "h4" here; assuming missing "li" start-tag</p> <pre><code> &lt;h4&gt;&lt;b&gt;Groep 1&lt;/b&gt;&lt;/h4&gt; </code></pre> <p>the piece of code it's in is this:</p> <pre><code>&lt;div class="leftsidebar"&gt; &lt;ul class="nav"&gt; &lt;h4&gt;&lt;b&gt;Groep 1&lt;/b&gt;&lt;/h4&gt; &lt;li&gt;&lt;a href="leftnavbar/link1.html"&gt;Link 1&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="leftnavbar/link2.html"&gt;Link 2&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="leftnavbar/link3.html"&gt;Link 3&lt;/a&gt; &lt;/li&gt; &lt;h4&gt;&lt;b&gt;Groep 2&lt;/b&gt;&lt;/h4&gt; &lt;li&gt;&lt;a href="leftnavbar/link4.html"&gt;Link 4&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="leftnavbar/link5.html"&gt;Link 5&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="leftnavbar/link6.html"&gt;Link 6&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;p id="leftnavbartext"&gt;"At vero eos et accusamus et iusto odio etc etc etc&lt;/p&gt; &lt;/div&gt; </code></pre> <p>I've looked up some info in another thread (<a href="https://stackoverflow.com/questions/6060812/validation-document-type-does-not-allow-element-h4-here">Validation - document type does not allow element &quot;h4&quot; here</a>) which says that (like all headers) is a block level element. You've probably put it directly inside something that doesn't allow it, like or or an inline element (, ).</p> <p>But on my website it does show the text in the h4 format. Why is this? And is there a way to fix this?</p> <p>Website: www.seandorsman.nl</p> <p>Browser: Google Chrome</p> <p>Thanks in advance!</p> <p>Sean</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload