This is an important message requiring you to make a choice if you're based in the EU.

HTML <title> Tag

The <title> tag defines a title of an HTML document. The title is displayed in the browser toolbar and on search engine results pages (SERPs) as the clickable headline.

The title should contain keywords so that search engines rank the page for relevant queries.

There should be only one one <title> element in an HTML document located inside <head> section.


The <title> element comes in pairs, the content must be written between opening (<title>) and closing (</title>) elements.


<!DOCTYPE html>
    <title>W3Docs - learn HTML, CSS, PHP, JavaScript online.</title>
    <p>The main content of the page.</p>



The <title> tag supports the Global Attributes.

Browser support

Do you find this helpful?

Related articles