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

Business catalyst expert, Business catalyst expert I am in search of som...

Business catalyst expert I am in search of someone who knows adobe business catalyst I am building a website for golfers and want to make a statistics website. Desired Skills

Need help to develop map-based community website, Develop Map-based communi...

Develop Map-based community website Community website allowing registered users as well as non-registered guests to post their location on a Google map. Visitors can then search

Need magneto development for changes to a custom module, Magneto Developmen...

Magneto Development - Changes to a custom module We are consist an Instagram image upload module built for our Magneto based website. The developer of this module is no longe

A web application of shopping cart using php, You are required to implement...

You are required to implement a shopping cart web using PHP. The web application should allow the user to view the items in a catalogue, add items to a shopping cart, remove items

We need help in mobile punch card builder, We need help in Mobile Punch Car...

We need help in Mobile Punch Card Builder I have a mobile site builder platform which I would like users to as well be able to create mobile punch cards (punches) & Rewards poin

Database, how to inset image into database

how to inset image into database

Define the document page title, Define the Document Page Title However t...

Define the Document Page Title However the document has a file name, notice it is labelled Untitled Document still; that is because it required an HTML document name, or page ti

I am seeking for a skilled web programmer in html, PSD to Wordpress I am...

PSD to Wordpress I am seeking for a skilled web programmer in HTML to transform my PSD into HTML. I have two PSD right now. What I am seeking is a great freelancer that I

Adding css style to html page, Step 1: Click on Window Menu Step 2: choo...

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

#web, Ask question Write a PHP program that allows you to: (i) create the ...

Ask question Write a PHP program that allows you to: (i) create the text file "test.txt" (ii) insert the text: "Hello dear" into the file (iii) append the text: "Welcome" to the

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