title: Validation Error: Element a not allowed as child of element ul in this context. (Suppressing further errors from this subtree.)
body: <p>I am trying to find a solution to this validation error. I have an image grid with thumbnails that bring up a modal when clicked. Everything works correctly but it does not validate. I can't put li around the modal image or it shows before clicked. I am pretty new to coding, any help would be great.</p>
  
  <pre class="lang-none prettyprint-override"><code>Line 54, Column 41: Element a not allowed as child of element ul in this context. 
  (Suppressing further errors from this subtree.)
  </code></pre>
  
  
  
  <pre class="lang-html prettyprint-override"><code>&lt;a href="#_" class="lightbox" id="img10"&gt;
  </code></pre>
  
  <p>code:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;ul class="cbp-rfgrid"&gt;
      &lt;li&gt;
          &lt;a href="#img10"&gt;&lt;img src="images/portfolio/goat-tn2.jpg" alt="logo"&gt;&lt;/a&gt;
      &lt;/li&gt;
      &lt;a href="#_" class="lightbox" id="img10"&gt;
        &lt;img src="images/portfolio/goat.jpg" alt="logo"&gt;
      &lt;/a&gt;
  &lt;/ul&gt;
  </code></pre>