Meta tag, PHP Web Programming

You might be aware of, and perhaps may have used, search engines such as Google to look for web pages on a topic of interest. The META Tag comes in useful if you want your web page to be easily locatable by search engines. When you enter a search string, the search engine shows web pages containing that string, provided the web page has used those in META tag appropriately. The search engine interacts with the META tag of the HTML page in order to find the required string. Information inside a Meta element should be such as to describe the document. Consider the following example (Figure 2.10).

<HTML>

<HEAD>

<TITLE>IGNOU</TITLE>

<META NAME="author" CONTENT="IGNOU">

<META NAME="description" CONTENT="This website shows you the different courses offered by

IGNOU">

<META NAME="keywords" CONTENT=" Website, different courses offered, IGNOU,mca,bca">

</HEAD>

<BODY>

<P>

The meta attributes of this document identify the author and courses offered.

</P>

</BODY>

</HTML>

729_META TAG.png

 Figure: Using the META Tag

Meta tags contain two attributes:

a. NAME: This attribute is used for identifying the type of META tag you are including.

b. CONTENT: This attribute is used to specify the keywords that the search engine catalogs.

Consider the following code of the example illustrated in Figure

<META NAME= "description" CONTENT="This website shows you the different courses offered by IGNOU">

The CONTENT attribute provides the list of words in the form of a sentence to the search engine. So if someone searches for one of the keywords listed by you in the META tag, then your web site would also appear in the result of the search.  It is useful to include META tags that include as many keywords as possible.  This makes the web page more likely to show up in a search.

You can also specify keywords by separating them by commas as illustrated in the following code fragment of Figure

<META NAME= "keywords" CONTENT= "Website, different courses offered, IGNOU ,mca, bca">

You can employ either of the methods of denoting the META tag as convenient.

Consider another example shown in Figure. This example demonstrates how to redirect a user if your site address has changed.

<HTML>

<HEAD>

<TITLE>IGNOU</TITLE>

<META HTTP-EQUIV="Refresh" CONTENT="5;URL=http://www.ignou.ac.in">

</HEAD>

<BODY>

<P>

Sorry! We have moved! The new URL is: www.ignou.ac.in

</p>

<p>

You will be redirected to new address in five seconds.

</p>

</BODY>

</HTML>

498_META TAG1.png

Figure: Redirecting a User if the Site has Moved

Posted Date: 4/22/2013 3:42:30 AM | Location : United States







Related Discussions:- Meta tag, Assignment Help, Ask Question on Meta tag, Get Answer, Expert's Help, Meta tag Discussions

Write discussion on Meta tag
Your posts are moderated
Related Questions
Only perform this function if the email address submitted is valid and its limit has not been exceeded, and of course the original reporter name and password Authentication has bee

E-Commerce platform / website / App I am seeking to create a new fashion / website / platform - I want it to be connected with phone app both android and iPhone. The service

need help with initial programming of the system as displayed in the attachment..its about simple incident response system that , as per my idea, shall be universal and easily depl

Want help WordPress OAuth Plugin We have written a Wordpress oauth plugin that delivers Wordpress authentication via our oauth provider at PlayGrid.com. The present plugin has a

is an HTML 4.0 addition to the frames toolbox. Now only MSIE supports . Unlike frames created via & , d

Step 1: Click on Window Menu Step 2: choose CSS Styles Or Click onto CSS Styles in the "Launcher" Step 3: Click on New to generate a new CSS style Step 4: select the Ty

Desire for help in Metasearch infrastructure on website We are seeing for experienced computer programmers that have built search engines met search or indexing sites in the pas

We need a Magento WYSIWYG Editor on CMSPro Extension I consume the CMSPro extension from MageWorld.com. Content parts use a WYSIWYG editor. But I want to change the WYSIWYG edit

We need a web developer We have a very modest three page site on go daddy and just want someone to design it through the go daddy site. We as well would like a logo designed.

TABINDEX = integer TABINDEX is supported by MSIE 4.x and higher & Netscape 6. Normally, while the user tabs from field to field in a form (in a browser that permits tabbing,