Title

The title tag is used to give a name to a website or webpage within a browser.

The title will only appear within the ‘tab’ of a browser, and as a result, the code is added inside the <head> tags rather than the <body> tags.

Key Points

<title> adds the webpage name to the tab of a browser.

The <title> doesn’t appear on the website itself.

The <title> must be added inside the <head> tags.

Adding a Title to a website

To add a Title to a page, simply add the opening and closing <title> tags inside the <head> of the page. The title of the page should then be added between the <title> and </title> tags.

If done correctly, the name of the web page should appear in the tab of the browser.

<html>
    <head>
        <title>My Website</title>
    </head>
    
    <body>


    </body>

</html>

Target

You should be able to add a Title to a webpage.

You should be able to explain what Title adds to a webpage.