Meta keywords for home page

Discussion in 'HTML & Website Design' started by TheRagingStock, Jul 10, 2008.

  1. #1
    Hey guys I have a quick couple questions:

    1. I know that the keyword meta tag is pretty much obsolete but it won't hurt to have right, unless you have too many keywords?

    2. How can I put the keyword meta tag ONLY in my index.php. I use a header.php for my site, but I want the keyword meta tag to ONLY show up in index.php and not my other pages.

    Thanks for the help.
     
    TheRagingStock, Jul 10, 2008 IP
  2. priyakochin

    priyakochin Banned

    Messages:
    4,740
    Likes Received:
    138
    Best Answers:
    0
    Trophy Points:
    0
    #2
    then put it in your index.php page
     
    priyakochin, Jul 10, 2008 IP
  3. desilator

    desilator Peon

    Messages:
    2,220
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Never hurts to have meta tags in my eyes.. and like stated above just pop it in the index.
     
    desilator, Jul 10, 2008 IP
  4. TheRagingStock

    TheRagingStock Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yeah but doesn't it need to be between the <head> </head> ???
     
    TheRagingStock, Jul 10, 2008 IP
  5. Divisive Cottonwood

    Divisive Cottonwood Peon

    Messages:
    1,674
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yes, of course. It depends what CMS you have - you may have to place it in the header.php file.
     
    Divisive Cottonwood, Jul 10, 2008 IP
  6. TheRagingStock

    TheRagingStock Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6

    Right, so if I do have to place it in the header.php, how would I do it limited it only to index.php.

    Can I do something like:

    If (index.php)
    {
    <meta="keywords" content=" blah, blah, blah, blah">
    }

    Basically what is the code that I would use? Thanks
     
    TheRagingStock, Jul 10, 2008 IP
  7. modern_mozart101

    modern_mozart101 Peon

    Messages:
    105
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I would add keywords to every page but if it's just for index.php then put it in the <head> tag of that file
     
    modern_mozart101, Jul 11, 2008 IP