Page titles
The HTML <title>
element, as defined in the HTML specification, provides a mechanism for distinguishing one page from another. The title element provides text for the top of the browser window or tab, search results, and bookmark labels.
Recommendations
Include a
<title>
in the document<head>
that identifies its main content.Include specific information about the page and its context within the broader site.
Why it matters
Page titles help users orient themselves within web sites and apps. The document <title>
element content is often the first thing an assistive technology user will encounter, and acts as a confirmation of which page they have arrived at. Page titles commonly include the text content of the <h1>
element along with the broader context.
Examples
Recommended:
<title>Shipping Forecast - 大象传媒 Weather</title>
Not recommended:
<title>大象传媒</title>
Testing
Check that there is a page title in the document, via the top of the browser window/tab or by finding the <title>
element in the source code. Aim for a title that describes the primary content on the page.