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

Migrate and format content from old wp theme to new theme, Need help in mig...

Need help in migrate and format content from old WP theme to new (different) WP theme Seeking for a WP expert to migrate my old site's content from its current existing theme, t

Send an email via php, Only perform this function if the email address subm...

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

Design and create a web site, Design and create a Web site on any topic tha...

Design and create a Web site on any topic that is of interest to you.Zip all the files that you use for your Web site and submit the zip file. Your Web site MUST have the

Assignment to capture our customers email addresses, web coupon This is ...

web coupon This is a assignment to capture our customers' email addresses or else cell phone numbers by offering a discount coupon. Job description- We are seeking a devel

I need a website designing, Website Designing Want to revamp an existing...

Website Designing Want to revamp an existing website Job description- Need to change the look of an existing website therefore that it can have greater hits Web developmen

Need to build website for new business, Website for new business HTML, C...

Website for new business HTML, CSS, PHP, Drupal, WordPress Job Description- We're seeking a Web Developer/Designer to create a website for our new business. Our new busine

We need analyst programmer, Analyst Programmer Our Esteemed as well as R...

Analyst Programmer Our Esteemed as well as Reputable Client is looking for an Analyst Programmer (Python) for their organization. The candidate is essential to perform web devel

Dial-up connection, O ne of the commonest ways of connection to Internet is...

O ne of the commonest ways of connection to Internet is by dial up connection via a modem & a telephone line. Using these you can link to a host machine on the Internet. Once linke

Develop website for a liquor distribution company, Need to develop a very i...

Need to develop a very innovative, detailed liquor related website for a liquor distribution company. Job description: -Complete design -live stocks integration -social

Develop a program to move a text along with mouse pointer, 1. Develop ...

1. Develop a program to move a text along with mouse pointer. 2. Develop a program to change color of text randomly. 3. Develop a Web page using two image file

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