Skip to main content
HTML Validation

Element “head” is missing a required instance of child element “title”.

About This HTML Issue

The <title> element is a required child of <head> according to the HTML specification. It defines the document’s title, which appears in the browser tab, is used as the default name when bookmarking the page, and is displayed as the clickable heading in search engine results. Omitting it violates the HTML standard and triggers this validation error.

Beyond standards compliance, the <title> element is critical for accessibility. Screen readers announce the page title when a user navigates to a new page or switches between tabs, giving them immediate context about where they are. A missing title forces assistive technology users to explore the page content to understand its purpose. Search engines also rely heavily on the <title> for indexing and ranking, so omitting it can hurt discoverability.

There are several common causes for this error:

  • The <title> element is simply missing. This often happens in boilerplate code or quick prototypes where it’s overlooked.
  • Duplicate <head> sections. If your HTML contains two <head> elements (for example, from a copy-paste error or a templating mistake), the validator may flag the second one as missing a <title>.
  • The <title> is placed outside <head>. If the <title> element accidentally ends up in the <body> or before the <head>, the validator won’t count it as a child of <head>.
  • The <title> is empty. While an empty <title> element (<title></title>) may not trigger this specific error, some validators will flag it separately. Always include descriptive text.

Examples

Missing <title> element

This triggers the validation error because the <head> has no <title>:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
  </head>
  <body>
    <h1>Welcome</h1>
  </body>
</html>

<title> placed outside <head>

Here the <title> exists but is in the wrong location, so the <head> is still considered to be missing it:

<!DOCTYPE html>
<html lang="en">
  <title>My Page</title>
  <head>
    <meta charset="utf-8">
  </head>
  <body>
    <h1>Welcome</h1>
  </body>
</html>

Duplicate <head> sections

A templating error or copy-paste mistake can introduce a second <head>, which lacks its own <title>:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>My Page</title>
  </head>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
  </head>
  <body>
    <h1>Welcome</h1>
  </body>
</html>

Correct usage

Place a single <title> element with descriptive text inside the <head>:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Welcome — My Website</title>
  </head>
  <body>
    <h1>Welcome</h1>
  </body>
</html>

Tips for a good <title>

  • Keep it concise but descriptive — aim for roughly 50–60 characters.
  • Make it unique for each page on your site. Avoid generic titles like “Untitled” or “Page”.
  • Front-load the most important information. For example, Contact Us — My Company is more useful than My Company — Contact Us when users scan many browser tabs.
  • Avoid duplicating the <h1> verbatim; the title should provide broader context (such as including the site name), while the <h1> focuses on page-specific content.

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?

Ready to validate your sites?
Start your trial today.