HTML title tag

<title> tag defines the title or name of the document. It is usually placed in the <head> tag.

Example


 <head><title>Introduction to The Accounting</title></head>

Try </>

It must be used only once in a document. The title can be seen in the tab bar.

Specific uses

The title of the page and the first heading are often different. But they are related to some term.

Example


<html>
 <head><title>Humingbird is the smallest bird</title></head>
 <body>
  <h1>Humingbird</h1>
  <p>You can see title of the page in the tab.</p> 
 </body>
</html>
Try</>

Related tags

TagsDescription
<head> It represents the meta information. It contains a title, link and meta tags.
<article> The content goes here </article>

Tag omission

Both starting and ending tags are necessary for the <title> element.

Global Attributes

All the global attributes are applicable on the <title> element.



Was this article helpful?

 

Email:

Message:

Get the newsletter