Skip to main content
HTML Validation

Bad start tag in “title” in “noscript” in “head”.

About This HTML Issue

The <title> element can't go inside a <noscript> block in the <head>, because a <noscript> there accepts only <link>, <style> and <meta> elements.

The validator reads the page the way a browser with JavaScript turned off would. In that mode, a <title> start tag inside a <noscript> in the <head> makes the parser close the <noscript> early and handle the <title> as if it sat directly in the <head>. The </noscript> end tag then has nothing left to close, so the validator usually reports a stray </noscript> end tag right after this error.

Browsers with JavaScript turned on do the opposite: they read everything inside a <noscript> as plain text and ignore it. The same markup gives the page a title for some visitors and none for others. The document title shouldn't depend on scripting. Screen readers announce it when the page loads, and browsers show it in tabs and bookmarks.

Move the <title> out of the <noscript> so it sits directly in the <head>. If the page already has a <title>, delete the one inside <noscript> instead, since a document can have only one. When the <noscript> was meant to show a message to visitors without JavaScript, put that message in a <noscript> inside the <body>, where visible content is allowed.

Invalid example

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <script src="app.js"></script>
    <noscript>
      <title>Product catalog</title>
    </noscript>
  </head>
  <body>
    <h1>Product catalog</h1>
  </body>
</html>

Valid example

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Product catalog</title>
    <script src="app.js"></script>
  </head>
  <body>
    <noscript>
      <p>Turn on JavaScript to use the catalog filters.</p>
    </noscript>
    <h1>Product catalog</h1>
  </body>
</html>

Find issues like this automatically

Rocket Validator scans thousands of pages in seconds, detecting HTML issues across your entire site.

Help us improve our guides

Was this guide helpful?
🌍 Trusted by teams worldwide

Validate at scale.
Ship accessible websites, faster.

Automated HTML & accessibility validation for large sites. Check thousands of pages against WCAG guidelines and W3C standards in minutes, not days.

Scheduled Reports
API Access
Open Source Standards
€5 / week

1K Weekly

1,000 monthly checks. Cancel anytime.

Get 1K Weekly →

Join teams across 40+ countries