HOW TO CREATE PAGE TITLES IN HTML



All HTML pages must have a page title.

To add a title to your page, change its code to look like this:

<! DOCTYPE html>
<Html>
<Head>
<Title> My first webpage </ title>
</ Head>
<Body>
This is my first web page
</ Body>
</ Html>
We've added two new elements here, which start with the main tag and the title tag (and see how they close both).

The main element (starting with the <head> opening tag and ending with the closing tag </ head>) appears in front of the body element (starting with <body> and ending with </ body>) page . Head element information does not appear in the browser window.

We will see later that other elements may appear inside the main element, but the most important of them is the element of the title.

If you view this document in the browser (save and reload as before), you will see that "My first webpage" will appear in a tab or in the title bar of the window (not the actual canvas area). The text you place between the title tags has become the title of the document (surprise!). If you add this page to your "favorites" (or "bookmarks", depending on your browser), you would see that the title is also used there.