Where do meta tags go?

Discussion in 'AdSense' started by stuntman112, Jul 13, 2008.

  1. #1
    I want to add a meta tag to by blog, but everytime I try it says:
    Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
    XML error message: The element type "meta" must be terminated by the matching end-tag "".

    Here is my meta tag on my blogger page I took out the description and keywords


    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
    <html>
    <head>
    <title>Computer Advances</title>
    <meta name="description" content="----------------.">
    <meta name="keywords" content="---------------">
    </head>

    <title><data:blog.pageTitle/></title>
    <b:include data='blog' name='all-head-content'/>
    <b:skin><![CDATA[/*

    Please help.
     
    stuntman112, Jul 13, 2008 IP
  2. nabilacute

    nabilacute Active Member

    Messages:
    619
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #2
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
    <head>
    <b:include data='blog' name='all-head-content'/>
    <b:if cond='data:blog.pageType == &quot;index&quot;'>
    <title><data:blog.title/> : Computer Advances </title>
    <meta content='your tag content ='Keywords'/>
    <b:else/>
    <b:if cond='data:blog.pageType == &quot;archive&quot;'>
    <title><data:blog.title/> : Computer Advances </title>
    <meta content='your keyword='Keywords'/>
    <b:else/>
    <b:if cond='data:blog.pageType == &quot;item&quot;'>
    <title><data:blog.pageTitle/></title>
    <meta expr:content='data:blog.pageTitle' name='Keywords'/>
    </b:if>
    </b:if>
    </b:if>
    <b:skin><![CDATA[/*

    dont forget Expand Widget Templates :)

    sorry if not work, just try help
     
    nabilacute, Jul 13, 2008 IP
  3. stuntman112

    stuntman112 Peon

    Messages:
    124
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    nope that does not work, thanks though. Anyone else?
     
    stuntman112, Jul 13, 2008 IP
  4. sunil_gupta20801

    sunil_gupta20801 Active Member

    Messages:
    900
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    60
    #4

    <META name="description" content="----------------."></META>
    <META name="keywords" content="---------------"></META>

    Did you see? you have to close also the META tag.
     
    sunil_gupta20801, Jul 13, 2008 IP
  5. stuntman112

    stuntman112 Peon

    Messages:
    124
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Here is what it looks like now. Now it says:
    The element type "html" must be terminated by the matching end-tag "". WTF

    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
    <head>
    <title>Computer Advances</title>
    <meta name="description" content="Get all of ---"></meta>
    <meta name="keywords" content="computer"></meta>
    <meta name="author" content="scott"></meta>
    </head>

    <title><data:blog.pageTitle/></title>
    <b:include data='blog' name='all-head-content'/>
    <b:skin><![CDATA[/*
     
    stuntman112, Jul 13, 2008 IP
  6. sunil_gupta20801

    sunil_gupta20801 Active Member

    Messages:
    900
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    60
    #6

    Did you check for closing html tag </html>?
     
    sunil_gupta20801, Jul 13, 2008 IP
  7. stuntman112

    stuntman112 Peon

    Messages:
    124
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I just put </html> after </head> and a <html> before <head>

    The element type "html" must be terminated by the matching end-tag "".
     
    stuntman112, Jul 13, 2008 IP
  8. sunil_gupta20801

    sunil_gupta20801 Active Member

    Messages:
    900
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    60
    #8
    Like this

    <html xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
    <html>
    <head>


    Remove this <html> just up to <head>. There is no need of it. It's already there <html xmlns=

    Just keep </html> in the last.
     
    sunil_gupta20801, Jul 13, 2008 IP
  9. stuntman112

    stuntman112 Peon

    Messages:
    124
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Nope now it says

    The markup in the document following the root element must be well-formed.
     
    stuntman112, Jul 13, 2008 IP
  10. sunil_gupta20801

    sunil_gupta20801 Active Member

    Messages:
    900
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    60
    #10
    Need to see the whole template, otherwise its too difficult to guess anything.
     
    sunil_gupta20801, Jul 13, 2008 IP
  11. stuntman112

    stuntman112 Peon

    Messages:
    124
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Do you want me to send it to you?
     
    stuntman112, Jul 13, 2008 IP
  12. sunil_gupta20801

    sunil_gupta20801 Active Member

    Messages:
    900
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    60
    #12
    Will be fine, i will give it a try, but no guarantee:)
     
    sunil_gupta20801, Jul 13, 2008 IP
  13. sunil_gupta20801

    sunil_gupta20801 Active Member

    Messages:
    900
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    60
    #13
    Put </head> tag just above the <body> and dont need to use </html> tag after this.

    Remove both </head> and </html> and put </head> just above <body> and </html> is already there in the bottom so remove this one
     
    sunil_gupta20801, Jul 13, 2008 IP
  14. kpatelseo

    kpatelseo Peon

    Messages:
    148
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Place code between

    <b:include data='blog' name='all-head-content'/>
    <---Code Here-->
    <b:skin><![CDATA[/*


    <b:if cond='data:blog.url == &quot;http://offshorewebsitedevelopment.blogspot.com/&quot;'>
    <title><data:blog.title/></title>
    <meta expr:content='your keywords here' name='Keywords'/>
    <b:else/>
    <b:if cond='data:blog.pageType == &quot;item&quot;'>
    <title><data:blog.pageTitle/></title>
    <meta expr:content='data:blog.pageTitle' name='Description'/>
    <meta expr:content='data:blog.pageTitle' name='Keywords'/>
    </b:if>
    </b:if>

    For Blog home page:
    The title will be blog title, description and keywords you can enter for blog home page

    For Individual Posts:
    The title, description & keywords will be the post title (100% relavancy)
     
    kpatelseo, Aug 20, 2008 IP
  15. penelope.garcia

    penelope.garcia Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    I use wordpress blogs...and they allow meta tags ...automatically while creating pages.....don't know about blogger ... :(
     
    penelope.garcia, Jan 1, 2010 IP