How to fix: Unclosed element noscript.

Most Likely Cause and Fix

Your markup contains a <noscript> start tag that is lacking the matching </noscript> end tag. This commonly occurs with inline elements.

Use:

<p>
  This is an <a href="http://example.com/">example</a>.
</p>

instead of:

<p>
  This is an <a href="http://example.com/">example.
</p>

What This Error Means

Elements in HTML have a start and an end, with sometimes something in the middle:

<p> <!-- start -->
  Foo  <!-- middle -->
</p> <!-- end -->

When you include an element in your markup you should, as you might expect, begin with the start, include any content in the middle where relevant and finish with the end.

This error is telling you that your markup contains a <noscript> start tag that is lacking the matching </noscript> end tag.

How To Fix It

The line and column number in the specific error message you encountered will point you to the element in question.

Ensure that a correctly-placed end tag matches the relevant start tag.

Discuss, Comment and Improve

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

comments powered by Disqus