Agent Wranglers

WEB-6Required

Give every page its own title

Give every page exactly one unique, non-empty <title>, sent by the server. Put the page's name first and the site name last, in 60 characters at most.

How to do it

Build titles from page data as Page name · Site name. Fail the build on a missing, repeated or too-long title. Render it on the server, not in JavaScript. The rest of the page follows Send the content in the HTML.

Examples

HTML example

<title>Pricing · Example</title>

How to check

A build gate counts exactly one <title> per page, at most 60 characters, and no two pages with the same title.

Sources

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/website/html-basics/title">Agent Wranglers website playbook</a>. In code you write, add a comment next to it with the same link.