Forum Moderators: coopster
How can i create META tags, HEAD tags...etc...that will help with SEO when i have a PHP page...?
i tried to echo, and maybe i did it wrong, but i cant figure it out....reason is, i want to put a TITLE, and a DESCRIPTION tag on my introduction page wich now, is pure PHP...
any pointers are greatly appreciated....
(..hint ..hint CAMERAMAN, JAG...)
<title><?php echo $ts;?></title>
<META NAME="description" CONTENT="<?php echo $ds;?>" />
and then I just supply the content in the variables. You shouldn't have any trouble doing the whole thing as an echo, though:
echo "<META NAME=\"description\" CONTENT=\"Great source for examples\" />\n";
I know the spiders crawl them for the description; it shows up under the title in search results.
I've always done HTML parameters with double quotes but as far as I know single quotes aren't "wrong". So if you just typo'd yours into the post and the above two problems aren't actually there in the page, I don't see anything wrong with yours.