Meta tag, PHP Web Programming

Assignment Help:

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=https://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


Related Discussions:- Meta tag

Fix problem with html5 contenteditable field, Fix problem with html5 conten...

Fix problem with html5 contentEditable field I have a issue with a modest contentEditable field in html5 that I want to fix 1) If I establish a contentEditable field in html5

Looking for a facebook app developer to build facebook, Facebook app develo...

Facebook app developer Looking for a Facebook app developer to build Facebook Application but with some additional features and add-ons. The app developer wants experience in

I want a web application which manages the schedule class, Web application ...

Web application I want a web application which manages the schedule classrooms the literature the courses tuition fees and I can input grades. All the above will interact. Ro

We need help to build a web page, We need help to build a web page I hav...

We need help to build a web page I have no idea of the typical pricing for such a project. What I want- I have an image for the page I created in photoshop that I need the

Advanced topics of html, In this unit we have study some significant and ad...

In this unit we have study some significant and advanced topics of HTML. Now you have to be able to develop interactive Web pages also. We have discussed ways of connecting to dist

We are needing a website similar to previous, We are needing a website simi...

We are needing a website similar to previous Needing a website, same concept however different design. I want someone who can code cleanly and effectively. I want it to work bug

Dual mode operation in os, how does dual mode operation helps the operating...

how does dual mode operation helps the operating system to protact itself?

I want help in php, PHP, Wordpress Developer - with Mixpanel I am alteri...

PHP, Wordpress Developer - with Mixpanel I am altering from utilizing Aweber for email management to Mixpanel. I need you to develop a Wordpress plugin that will permit me to

Need joomla upgrade, Joomla Upgrade It has come to our attention that yo...

Joomla Upgrade It has come to our attention that you have at least one installation of Joomla 1.5.x - 2.5.16. The 1.5.x version has been deprecated by Joomla for over a year,

Need help to adding new tab on the website, Need help to Adding new tab on ...

Need help to Adding new tab on the website A new tab or link needs to be created on the website for customer reviews. The customers must be able to write about their experience

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd