<title>: The HTML Title Element

1 Description

The <title> element sets the title for the html document. Most web browsers will use the title of an html document as the label for that tab or window.

So if the <title> of an HTML document is 'Beef Stew Recipe' then when a user views that html document/webpage in their web browser the tab label will be 'Beef Stew Recipe'.

2 Examples

<!DOCTYPE html>
<html>
    <head>
        <title>Example HTML Document</title>
    </head>
    <body>
        <h1>Title Example</h1>
        <p>The title for this webpage is 'Example HTML Document'.</p>
    </body>
</html>

This document was last updated: