HTML <title> tag

The <title> tag is used to set the title of a webpage which can be seen at the top left of the web browser window.

NOTE: The <title> tag always goes in the head section of an HTML document.

Standard attributes

dir, lang, xml:lang

For more information on standard attributes, check out our HTML standard attributes reference page.

Event attributes

NONE

For more information on event attributes, check out our HTML event attributes reference page.

Example

<html> <head> <title>All about rabbits</title> </head> <body> The rabbit is a fine animal that can hop around </body> </html>

Tips & notes

Make sure your title is relevant to the page's content. For example, the content on this page is reference material for HTML's <title> tag, so the title of the page is HTML title tag. This is important for your visitors as well as search engines.

Visitors will be able to easily identify what the page is about when they have many tabs open or are looking at a list of pages in their bookmarks and can only see the page's title. Search engines will be able to display your page's title along with a link to the page itself in their results and your search engine rank will increase as well.

Web Reference
  1. CSS reference
  2. RSS reference
  3. HTML reference


© Copyright 2011-2012 Landofcode.com
Terms of use | Privacy policy | Copyright information | Make a donation