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

Need a custom type of input control which is a tree view, Jaspersoft: Custo...

Jaspersoft: Custom Input Control: Tree View For a fresh project we urgently need a custom type of Input Control which is a tree view. we have the subsequent table structure (

Need help in php programmer with codeigniter exp, PHP Programmer with CodeI...

PHP Programmer with CodeIgniter exp CodeIgniter and PHP Programming We want highly talented individuals to work with our company. You must be- Puntual Honest Resp

Need shipping distance calculator for sitemile wordpress, Need Shipping Dis...

Need Shipping Distance Calculator for Sitemile Wordpress Auction Using this theme and framework, I want a widget that allows users to enter in an address as well as receive a sh

Need help in referral program magento enterprise extension, Referral Progra...

Referral Program Magento Enterprise Extension We're seeking someone to develop a referral extension for our online jewelry store Required functionality: a) Members will ap

Can someone help us implement geoip2 on our website, GeoIP2 installation as...

GeoIP2 installation assistance Can someone help us implement Geoip2 on our website? We have GeoIPlite working as we speak. We now need to update it. Desired Skills are PHP

Seeking urgent assistance with loading an asp.net website, Seeking urgent a...

Seeking urgent assistance with loading an ASP.net website We are urgently seeking assistance with loading an ASP.net website installation onto a new server, job will start immed

Dynamic pages, These are those where the content of the web page based on u...

These are those where the content of the web page based on user input. Thus interaction with the user is needed in order to display the web page. For instance, consider a web page

Need capable to design any required worpress plugin, Wordpress Web designer...

Wordpress Web designer/Developer with web application development skills Be capable to design any required Worpress plugin, component, modules. We are begin a new USMLE/COMLE

Magento expert wanted for a quick help, Magento Expert wanted for a quick j...

Magento Expert wanted for a quick job at ALRUG.com We are working on a new website founded on Magento for ALRUG.com, which is now located at ALRUG.com/beta running on Magento Co

I need a help to create wp custom application development, I need a help to...

I need a help to create WP custom application development Looking to create a few approval processes, custom post types, user registration types, reports and analytics in a cust

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