Computer >> Computer tutorials >  >> Programming >> HTML

How to use title tag in HTML Page?


The title is essential in all the HTML Documents. To define the title of a document, use the <title> tag. The title of a document is visible on the web browser toolbar and the search engine results in display title for an HTML page.

Just keep in mind that you should add <title>...</title> tag inside <head>…</head> tag.

How to use title tag in HTML Page?

Example

You can try the following code to insert a title in an HTML page. The title will be visible on the web browser toolbar

<!DOCTYPE html>
<html>
   <head>
      <title>HTML Title Tag</title>
   </head>

   <body>
      <p>The content of the documents gets added here.</p>
   </body>
</html>

Output

The content of the documents gets added here.