title: The Document Title element
The <title> HTML element defines the document’s title that is shown in a browser’s title bar or a page’s tab. It only contains text; tags within the element are ignored.
Attributes
Global attributes
accesskey Specifies a keyboard shortcut to activate or focus an element.
aria-* Defines accessibility properties and states for assistive technologies.
class Specifies one or more CSS class names for styling the element.
data-* Stores custom data private to the page or application.
dir Sets the text direction (left-to-right, right-to-left, or auto).
hidden Hides the element from display and assistive technologies.
id Defines a unique identifier for the element within the document.
inputmode Hints which virtual keyboard type to display on mobile devices.
itemid Provides a global identifier for microdata items.
itemprop Defines a property name-value pair for microdata.
itemref Associates properties with an item via element IDs for microdata.
itemscope Creates a new microdata item container.
itemtype Specifies the vocabulary URL for microdata items (like Schema.org).
lang Specifies the primary language of the element’s content.
nonce Provides a cryptographic nonce for Content Security Policy.
role Defines the element’s semantic role for accessibility.
tabindex Controls keyboard navigation order and focusability.
title Provides advisory information displayed as a tooltip.
Example
<head>
<title>Jane's Digital Garden - IndieWeb Developer</title>
<meta name="description" content="Personal website of Jane Developer, focused on IndieWeb technologies and sustainable web development.">
</head>
<head>
<title>Building Your First Personal Website | Web Development Guide</title>
<meta name="description" content="Step-by-step guide to creating your own website using static site generators and IndieWeb principles.">
</head>