HTML Element <title> Example

The HTML element <title> is used to define a title to an HTML document.

It is very important to define a proper title for all the HTML documents.

  • The browsers use the title to display it in the browser tabs, which are also used as the titles for the browser bookmarks.
  • The search engines use the title to create a clickable link to the document, which determines the page content.

Here is an example that explains the element in action. Click the below link to see the live demo.

Examples

Run this on IDE

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Example - HTML Element title</title>
</head>
<body>
    <p>The page title appears on a browser tab.</p>
</body>
</html>

Related Links