
Originally Posted by
BAMcopywriting
The article states that the only single meta tag that Google does not reference is "keywords". Many other search engines could possibly follow the Google guidelines.
# "http://googlewebmastercentral.blogspot.com/2009/09/google-does-not-use-keywords-meta-tag.html"
Q: Does this mean that Google ignores all meta tags?
A: No, Google does support several other meta tags. This meta tags page documents more info on several meta tags that we do use. For example, we do sometimes use the "description" meta tag as the text for our search results snippets, as this screenshot shows:
[hr]
@Greg Baka ;
If you use PHP then set variables then include a "_header_.php" file.
# page
PHP Code:
<?php include "_doctype_.php"; ?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<?php
$title = /* SEO IMPORTANT */ words here are usually shown in a browsers search results";
$description = /* SEO IMPORTANT */ words here are usually shown in a browsers search results";
$canonical = /* SEO IMPORTANT */ "UNIQUE_page_title_goes_here.php";
$no_cache = /* SEO IMPORTANT */ true - prevents Google Webmaster Tools screaming about duplicate data
$stylesheet = "style-001.css";
require VIEWPATH ."_header_.php"; // single file included in nearly 3,000 pages
if( DEBUGGING or TESTING )
{
echo "<style type='text/css'>";
echo "body {background-color: pink; color:#900;}";
echo "</style>";
}
?>
<head>
</body>
PHP Code:
<?php /* "_header_php"; */ ?>
<title><?php echo $title;?> | Joke of the Day is Going Pink for October</title>
<meta name='description' content='<?php echo $description;?>' />
<link media="screen,projection,tv" href="<?php echo $stylesheet;?>" type="text/css" rel="stylesheet" />
<link href="<?php echo base_url() .$canonical;?>" rel="canonical" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="Content-Language" content="en"/>
<meta name="viewport" content="width=device-width; initial-scale=1.0;"/>
<meta name="robots" content="<?php echo $follow;?>" />
<link href='/favicon.ico' type='image/x-icon' rel='icon' />
<link href='/favicon.ico' type='image/x-icon' rel='shortcut icon' />
<meta name="author" content="John_Betong | john@johns-jokes.com" />
<?php if( $no_cache ) { ?>
<meta Http-Equiv="Cache-Control" Content="no-cache">
<meta Http-Equiv="Pragma" Content="no-cache">
<meta Http-Equiv="Expires" Content="0">
<FilesMatch "\.(html|htm|js|css)$">
Header set Cache-Control "max-age=0, no-cache, no-store, private"
Header set Pragma "no-cache"
Header set Expires "0"
</FilesMatch>
<?php } ?>
As far as your meta tags in "_header_.php
1) Google Analytics - immediately before </body>
3) Google Webmasters verification code - prefer a single verification XML/HML file in root
5) Google Adwords code - prefer to inlcude in body "_Google_250x250px_js";
6) Bing Ads code - prefer a single verification XML/HML file in root
7) Google +1 script - prefer to have a "_google_plus_.js file toggle or included in page body
8) Facebook script - prefer to have a "_google_plus_.js file toggle or included in page body
Bookmarks