MyInternships.in

HTML Tags

HTML <title> Tag

The <title> tag defines the title of the document, shown in the browser tab and used by search engines and social shares. Every HTML document must have exactly one.


The <title> Tag

The <title> element sets the document's title. It appears in the browser tab or window title bar, is used as the default name when a page is bookmarked, and is the clickable headline shown by search engines in results pages.

It must be placed inside the <head>, contains only plain text (no other tags), and there must be exactly one per document.

Syntax

Text-only content, placed inside the head.
Example
<title>Your Page Title</title>

Example

The title text appears in the browser tab.
Example
<!DOCTYPE html>
<html>
  <head>
    <title>Home — Acme Widgets</title>
  </head>
  <body>
    <h1>Welcome to Acme Widgets</h1>
    <p>Look at the browser tab: it shows the title text.</p>
  </body>
</html>

More Examples

A descriptive title improves search rankings and click-through.
Example
<!DOCTYPE html>
<html>
  <head>
    <title>Pricing Plans | Acme — Simple, Fair Pricing</title>
  </head>
  <body>
    <h1>Pricing</h1>
    <p>A descriptive, keyword-rich title helps SEO.</p>
  </body>
</html>
💡

Keep titles under about 60 characters so they are not truncated in search results, and make each page's title unique and descriptive.

⚠️

The <title> may only contain text. Putting other HTML tags inside it is invalid and they will be shown as plain text or ignored.

Key Takeaways

  • <title> sets the browser tab and search-result title.
  • It is required and must be inside <head>.
  • There is exactly one per document.
  • It contains text only, no nested tags.
  • Concise, unique, descriptive titles help SEO.

Related HTML Topics

Keep learning with these closely related tutorials.

Ready to use your HTML skills?

Find web development internships and fresher jobs across India.

Browse Web Dev Internships