How to fix: End tag for "noscript" which is not finished

Most Likely Cause and Fix

Your markup contains a <noscript> element which contains invalid markup.

Use:

<noscript>
  <p>
    Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments.</a>
  </p>
</noscript>

<noscript>
  <p><img src="http://pixel.quantserve.com/pixel/example.gif" alt="" /></p>
</noscript>
        

instead of:

<noscript>
  Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments.</a>
</noscript>

<noscript>
  <img src="http://pixel.quantserve.com/pixel/example.gif" alt="" />
</noscript>

What This Error Means

This error is telling you that the validator reached the end of a <noscript> element and found that this element did not contain what is expected.

This can happen if you inadvertently include an empty element which should contain child elements or if the markup within the element is not valid.

How To Fix It

For noscript elements

Ensure that there are no errors in the markup contained in <noscript> elements.

Use:

<noscript>
  <p>
    Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments.</a>
  </p>
</noscript>

<noscript>
  <p><img src="http://pixel.quantserve.com/pixel/example.gif" alt="" /></p>
</noscript>
        

instead of:

<noscript>
  Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments.</a>
</noscript>

<noscript>
  <img src="http://pixel.quantserve.com/pixel/example.gif" alt="" />
</noscript>

In general

There is no straightforward common fix for this type of error as it depends on the element that raised the error and the context in which this element appears in your markup.

Refer to the line and column number in the specific error you encountered to get some context on the cause of this error.

Check that you haven't included an element and omitted required child elements, such as including a list that lacks list items.

Check that the markup within the relevant element is valid. You may find that the relevant element contains additional elements that are not correctly nested or are not included within required containing elements.

Discuss, Comment and Improve

Did this help you? Can this page be improved? Let us know!

comments powered by Disqus