Login   Register  
PHP Classes
elePHPant
Icontem

File: readme.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Sandeep Kumar  >  SEO Title  >  readme.txt  >  Download  
File: readme.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: SEO Title
Analyze and report problems in page titles
Author: By
Last change:
Date: 2009-08-04 04:11
Size: 1,807 bytes
 

Contents

Class file image Download
/**********************************************************************
SeoTitle -- Check Title of a specified URL
Authors : Sandeep Kumar (san4u49 [at] gmail [dot] com)
Version : 1.0
/**********************************************************************

What is Title?
******************************
<title>: the most important element of a quality Web page

The <title> element in HTML is designed to provide a short piece of text that should stand for the document in cases such as:

    * window title bars
    * bookmark lists
    * result lists from search services

A good title

So take care to give your page a good title:

not too short
    "Section One" won't help much when it shows up in a search results list. Section one of what?. Better: <title>Section One of the Modern Music Guide</title> or even better <title>Time Frame (the Modern Music Guide, Section 1)</title>
not too long
    Because only 60 to 80 characters are displayed in many window titles, menus, etc.; you can give a more detailed/pleasant title in the top level heading of your document, e.g. <h1>Section One: When has the Modern Time Commenced, Musicwise?</h1> (with a link to the whole Modern Music Guide for context). 

/*****************************************
About this Class
/*****************************************

This class will check title of specified url.

*********************************************

Ex:
********************************************
$meta=New Seo_Title;
$url=$_REQUEST['url'];
if($url)
{
// show result
$result=$meta->seoTitle($url);
echo "<label>".$result['titleText']."</label>";
echo "<br>";
echo "<label style='color:red'> Result :".$result['title']."</label>";

**********************************************************************/