TITLE element is the most important element on your web page because it does so many things. The
TITLE element is used by browsers as well as search engines to define your web page. Here are some of the ways the
TITLE element is used:
TITLE element is confusing however, as many beginners think that it will display on the web page itself. But it doesn't (except in those locations I noted above) unless you write it a second time, usually in a
H1 or other headline element.
For example, if you have the following HTML:
<title>My First Web Page</title>
<p>This is my web page</p>
All that will display on the web page are the words “This is my web page.” Many beginners are then disappointed that the title doesn't display. In order to have the title show, you need to add:
<h1>My First Web Page</h1> to the
BODY of the document.
In HTML, the title is the text contained in the
<title></title> tags. This is stored in the
HEAD element of the document.
While this element isn't written to the main part of the web page, it is still visible in most web browsers. The following pages will show you different web browsers and where they put the title.