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.
<?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 == "index"'> <title><data:blog.title/> : Computer Advances </title> <meta content='your tag content ='Keywords'/> <b:else/> <b:if cond='data:blog.pageType == "archive"'> <title><data:blog.title/> : Computer Advances </title> <meta content='your keyword='Keywords'/> <b:else/> <b:if cond='data:blog.pageType == "item"'> <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
<META name="description" content="----------------."></META> <META name="keywords" content="---------------"></META> Did you see? you have to close also the META tag.
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[/*
I just put </html> after </head> and a <html> before <head> The element type "html" must be terminated by the matching end-tag "".
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.
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
Place code between <b:include data='blog' name='all-head-content'/> <---Code Here--> <b:skin><![CDATA[/* <b:if cond='data:blog.url == "http://offshorewebsitedevelopment.blogspot.com/"'> <title><data:blog.title/></title> <meta expr:content='your keywords here' name='Keywords'/> <b:else/> <b:if cond='data:blog.pageType == "item"'> <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)
I use wordpress blogs...and they allow meta tags ...automatically while creating pages.....don't know about blogger ...