How to use title tag in HTML Page?

HTMLWeb DevelopmentFront End Technology

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.

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.
raja
Updated on 22-Dec-2021 09:12:24

Advertisements