Several <head> tags on 1 page

Discussion in 'Search Engine Optimization' started by zodiakasxxx, Jan 13, 2010.

  1. #1
    Is it bad to have several <head> tags on my page? For example,

    <head>
    Stilesheets, javascripts</head>
    <h1>Some content</h1>

    <head>
    <meta-tags></>
    </head>

    ?
     
    zodiakasxxx, Jan 13, 2010 IP
  2. Lever

    Lever Deep Thought

    Messages:
    1,823
    Likes Received:
    94
    Best Answers:
    0
    Trophy Points:
    145
    #2
    In a word, Yes!

    html/xhtml should at least consist of:

    <html>
    <head></head>
    <title></title>
    <body>
    </body>
    </html>

    Valid code is not only good practice but search engines love it too.
     
    Lever, Jan 13, 2010 IP
  3. aukseo

    aukseo Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    the page will work but it's no best practice, also any meta information in the second head tag will be ignored
     
    aukseo, Jan 13, 2010 IP
  4. zodiakasxxx

    zodiakasxxx Peon

    Messages:
    128
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I simply don't know how to do it, because I need to include CSS and JS files in a top, but I can generate title tag only later, when receiving data from DB and URL. I guess I'll need to code such a kind of "engine" to firstly receive needed data from URL and generate title metatag...
     
    zodiakasxxx, Jan 13, 2010 IP