Monday, August 8, 2011

Head and Title Tags

The <head> Tag:
The contents in a normal HTML web page are enclosed in <html> and </html> tags. The first tag after the <html> tag in a normal HTML page is the <head> tag. The <head> tag contains other tags containing meta-information of the page. One such tag is <title> tag, that is discussed in the following text. Other tags containing meta information will be discussed later.
The <title> Tag:
When we start writing our HTML, the first thing we encounter is the title of our page. Title appears at the caption bar of the browser window. So every good HTML page needs a title. Here is what you need to add a title to your web page:
<title>This is my web page's title</title>
You can wirte the text of your own choice. Be sure to write a meaningful title for your web page. The title should reflect the contents of the web page. It is like a topic sentence. A good title text contains up to 20 words.
The <title> and </title> sould be surrounded by the <head> and </head> tags. If it is placed anywhere outside, it will not work.

No comments:

Post a Comment